Clean before doing a build so that we don't include stale build artifacts
in the binaries. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
dbc68ca747
commit
9be748f85c
3 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
./script/clean
|
||||||
|
|
||||||
TAG="docker-compose"
|
TAG="docker-compose"
|
||||||
docker build -t "$TAG" .
|
docker build -t "$TAG" .
|
||||||
docker run \
|
docker run \
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@ set -ex
|
||||||
|
|
||||||
PATH="/usr/local/bin:$PATH"
|
PATH="/usr/local/bin:$PATH"
|
||||||
|
|
||||||
|
./script/clean
|
||||||
rm -rf venv
|
rm -rf venv
|
||||||
|
|
||||||
virtualenv -p /usr/local/bin/python venv
|
virtualenv -p /usr/local/bin/python venv
|
||||||
venv/bin/pip install -r requirements.txt
|
venv/bin/pip install -r requirements.txt
|
||||||
venv/bin/pip install -r requirements-build.txt
|
venv/bin/pip install -r requirements-build.txt
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
find . -type f -name '*.pyc' -delete
|
find . -type f -name '*.pyc' -delete
|
||||||
|
find -name __pycache__ -delete
|
||||||
rm -rf docs/_site build dist docker-compose.egg-info
|
rm -rf docs/_site build dist docker-compose.egg-info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue