فهرست منبع

Clean before doing a build so that we don't include stale build artifacts
in the binaries.

Signed-off-by: Daniel Nephin <[email protected]>

Daniel Nephin 10 سال پیش
والد
کامیت
9be748f85c
3فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 2 0
      script/build-linux
  2. 2 0
      script/build-osx
  3. 3 0
      script/clean

+ 2 - 0
script/build-linux

@@ -2,6 +2,8 @@
 
 set -ex
 
+./script/clean
+
 TAG="docker-compose"
 docker build -t "$TAG" .
 docker run \

+ 2 - 0
script/build-osx

@@ -3,7 +3,9 @@ set -ex
 
 PATH="/usr/local/bin:$PATH"
 
+./script/clean
 rm -rf venv
+
 virtualenv -p /usr/local/bin/python venv
 venv/bin/pip install -r requirements.txt
 venv/bin/pip install -r requirements-build.txt

+ 3 - 0
script/clean

@@ -1,3 +1,6 @@
 #!/bin/sh
+set -e
+
 find . -type f -name '*.pyc' -delete
+find -name __pycache__ -delete
 rm -rf docs/_site build dist docker-compose.egg-info