Skip to content

Commit

Permalink
Remove scion-web submodule (sub/web) (#1306)
Browse files Browse the repository at this point in the history
The envisioned interdependency between `scion` and `scion-web` has not
materialized, and while it makes sense for `scion-web` to depend on
`scion`, the latter is not true.
  • Loading branch information
kormat authored Nov 21, 2017
1 parent 90cf7bf commit 5a97534
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 49 deletions.
8 changes: 0 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
name: Unit tests & Coverage
command: ./scion.sh coverage |& tee logs/coverage.run
when: always
- run:
name: scion-web
command: ./sub/web/manage.py test &> logs/sweb_test.run
when: always
- run:
name: Python documentation (sphinx)
command: make -f sphinx-doc/Makefile clean html |& tee logs/sphinx.run
Expand Down Expand Up @@ -70,10 +66,6 @@ jobs:
name: Unit tests & Coverage
command: ./scion.sh coverage |& tee logs/coverage.run
when: always
- run:
name: scion-web
command: ./sub/web/manage.py test &> logs/sweb_test.run
when: always
- run:
name: Python documentation (sphinx)
command: make -f sphinx-doc/Makefile clean html |& tee logs/sphinx.run
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
[submodule "sub/lwip-contrib"]
path = sub/lwip-contrib
url = [email protected]:netsec-ethz/scion-lwip-contrib.git
[submodule "sub/web"]
path = sub/web
url = [email protected]:netsec-ethz/scion-web.git
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ uninstall:
$(foreach var,$(SRC_DIRS),$(MAKE) -C $(var) uninstall || exit 1;)

tags:
{ git ls-files; git submodule --quiet foreach 'git ls-files | sed "s|^|$$path/|"'; } | grep -v sub/web/ad_manager/static/js/ | ctags -L -
{ git ls-files; git submodule --quiet foreach 'git ls-files | sed "s|^|$$path/|"'; } | ctags -L -
4 changes: 0 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,5 @@ RUN docker/deps_check
# Syncing should be a no-op, just need installation to run
RUN make -C go deps

# Setup scion-web
RUN cp sub/web/web_scion/settings/private.dist.py sub/web/web_scion/settings/private.py
RUN sub/web/manage.py makemigrations

# Build topology files
RUN ./scion.sh topology
5 changes: 0 additions & 5 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ RUN env/pip3/deps && rm -r ~/.cache/pip
COPY env/pip2 env/pip2
RUN env/pip2/deps && rm -r ~/.cache/pip

# scion-web pip3 packages
COPY env/pip3web env/pip3web
COPY sub/web/requirements.txt env/pip3web
RUN env/pip3web/deps && rm -r ~/.cache/pip

# zlog packages
COPY env/zlog env/zlog
RUN env/zlog/deps
Expand Down
1 change: 0 additions & 1 deletion env/deps
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ BASE=$(dirname "$0")
"$BASE/debian/deps"
"$BASE/pip3/deps"
"$BASE/pip2/deps"
"$BASE/pip3web/deps"
"$BASE/zlog/deps"
"$BASE/go/deps"
( cd go && make deps )
9 changes: 0 additions & 9 deletions env/pip3web/check

This file was deleted.

2 changes: 0 additions & 2 deletions env/pip3web/common.sh

This file was deleted.

12 changes: 0 additions & 12 deletions env/pip3web/deps

This file was deleted.

2 changes: 1 addition & 1 deletion scion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cmd_lint() {

py_lint() {
local ret=0
for i in python python/mininet sub/web; do
for i in python python/mininet; do
[ -d "$i" ] || continue
echo "Linting $i"
local cmd="flake8"
Expand Down
1 change: 0 additions & 1 deletion sub/web
Submodule web deleted from 2b2d68
2 changes: 0 additions & 2 deletions tools/ci/build_prep
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ tar xf ~/go_vendor.tar.gz -C go/vendor/
APTARGS=-y ./env/deps
# Syncing should be a no-op, just need installation to run
make -C go deps
cp sub/web/web_scion/settings/private.dist.py sub/web/web_scion/settings/private.py
./sub/web/manage.py makemigrations
./scion.sh topology --pseg-ttl 1800
exit $rt

0 comments on commit 5a97534

Please sign in to comment.