diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9b52a92ebd6bc340610d2d25216c199f06ef255a..7ac47dffc3e909eff3c6a9278e99375615278538 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,9 +19,9 @@ stages: - git clean -ffdx - chmod 755 ci/install.sh - ./ci/install.sh ci #updates - - ./ci/before_build.sh 0 + - ./ci/before_build.sh 1 buildout-bob.cfg script: - - ./ci/build.sh buildout-bob.cfg + - ./ci/build.sh after_script: - ./ci/after_build.sh artifacts: diff --git a/ci/before_build.sh b/ci/before_build.sh index 02624b3126c8328bda4f4afdc21636f693c9ef1d..94bdf880f2a9b4472aea3d835ee078706da5ad10 100755 --- a/ci/before_build.sh +++ b/ci/before_build.sh @@ -4,6 +4,7 @@ source $(dirname ${0})/functions.sh PIPINSTALL=$1 +CONFIG_FILE=$2 WHEELS_REPOSITORY="${DOCSERVER}/software/bob/wheels/gitlab/" WHEELS_SERVER=`echo ${DOCSERVER} | sed 's;https\?://;;'` @@ -49,14 +50,15 @@ if [ "$PIPINSTALL" == 1]; then if [ -e requirements-bob.txt ]; then run_cmd ${use_pip} install ${PIPOPTS} --requirement requirements-bob.txt else - log_info "No requirements.txt file found, skipping 'pip install <build-deps>'..." + log_info "No requirements-bob.txt file found, skipping 'pip install <build-deps>'..." fi +fi - # Finally, bootstrap the installation from the new environment - if [ -e bootstrap-buildout.py ]; then - run_cmd ${use_python} bootstrap-buildout.py - else - log_error "No bootstrap-buildout.py file found, stopping..." - exit 1 - fi +# Finally, bootstrap the installation from the new environment +if [ -e bootstrap-buildout.py ]; then + run_cmd ${use_python} bootstrap-buildout.py -c ${CONFIG_FILE} +else + log_error "No bootstrap-buildout.py file found, stopping..." + exit 1 fi + diff --git a/ci/build.sh b/ci/build.sh index 7d0ae3e190dfe7681c4dec2bd0962e1d7c0e54bf..32ac88cac0748f64b70dce4d6a6a987c7967d81b 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -3,7 +3,7 @@ source $(dirname ${0})/functions.sh -run_cmd ./bin/buildout -c ${1} +run_cmd ./bin/buildout if [ -x ./bin/bob_dbmanage.py ]; then run_cmd ./bin/bob_dbmanage.py all download --force;