diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-28 07:09:31 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-28 07:09:31 +0100 |
commit | c7fc5119f3b12effdf83e6347324480437ae88ea (patch) | |
tree | ef7c637a9b22c81b9c96e99c063848f83c379f22 /triggers | |
parent | f21dc408431736857418aea1a2cb25cca6dfb3c4 (diff) | |
download | buildslave-scripts-c7fc5119f3b12effdf83e6347324480437ae88ea.tar.gz |
Clean up ybd virtualenv
By making ybd run in a virtualenv for deploy as well as build,
installing all needed packages and not installing pip global
Diffstat (limited to 'triggers')
-rw-r--r-- | triggers/builders_trigger.sh | 3 | ||||
-rw-r--r-- | triggers/deploy_trigger.sh | 14 |
2 files changed, 12 insertions, 5 deletions
diff --git a/triggers/builders_trigger.sh b/triggers/builders_trigger.sh index 6aa9647..c11ffac 100644 --- a/triggers/builders_trigger.sh +++ b/triggers/builders_trigger.sh @@ -9,8 +9,7 @@ if [ -d ybd-env ]; then fi virtualenv --no-site-packages ybd-env cd ybd-env -./bin/pip install sandboxlib -./bin/pip install requests +./bin/pip install pyyaml sandboxlib jsonschema requests git clone -n https://github.com/devcurmudgeon/ybd.git git --git-dir=./ybd/.git --work-tree=./ybd checkout 15.39 cp ../builder_logic.py . diff --git a/triggers/deploy_trigger.sh b/triggers/deploy_trigger.sh index e9739b1..dab3364 100644 --- a/triggers/deploy_trigger.sh +++ b/triggers/deploy_trigger.sh @@ -11,11 +11,19 @@ git checkout $BUILDSLAVE_SCRIPTS_SHA cd definitions git checkout $DEFINITIONS_SHA cd .. -if [ -d ybd ]; then - rm -rf ybd +if [ -d ybd-env ]; then + rm -rf ybd-env fi +virtualenv --no-site-packages ybd-env +cd ybd-env +./bin/pip install pyyaml sandboxlib jsonschema requests git clone -n https://github.com/devcurmudgeon/ybd.git git --git-dir=./ybd/.git --work-tree=./ybd checkout 15.39 +cp ../deploy_logic.py . +cp ../deploy_a_system.sh . cp ybd.conf ybd cp ybd.conf ybd/config -python deploy_logic.py $SYSTEM $ARTEFACT $TESING_SHA +if [ -d ybd ]; then + rm -rf ybd +fi +./bin/python deploy_logic.py $SYSTEM $ARTEFACT $TESING_SHA |