From 6fdfd7e389a40027c3731b4ac24782aeccf95f56 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Fri, 2 Dec 2016 09:26:39 +0100 Subject: [PATCH] 6 stages --- .gitlab-ci.yml | 2 +- _ci/before_test.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 25d8969..6dd6990 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ stages: stage: test_bob before_script: #- ./_ci/install.sh _ci #updates - - ./_ci/before_test.sh + - ./_ci/before_test.sh buildout-bob.cfg script: - ./_ci/test.sh buildout-bob.cfg after_script: diff --git a/_ci/before_test.sh b/_ci/before_test.sh index 3709c10..f1cc929 100755 --- a/_ci/before_test.sh +++ b/_ci/before_test.sh @@ -3,7 +3,13 @@ source $(dirname ${0})/functions.sh -run_cmd $(dirname ${0})/before_build.sh +NIGHTLIES=$1 + +if [ "$NIGHTLIES" -eq '' ]; then + run_cmd $(dirname ${0})/before_build.sh +else + run_cmd $(dirname ${0})/before_build.sh ${NIGHTLIES} +fi # Source the newly created virtualenv log_info "$ source ${PREFIX}/bin/activate" -- GitLab