From 2ab0e314028a1bfad83f1f8c9630f82bc3c030f7 Mon Sep 17 00:00:00 2001 From: okhin Date: Thu, 4 Aug 2016 17:32:46 +0200 Subject: [PATCH] CI_PROJECT_NAME doesn't exist yet --- .gitlab-ci.yml | 3 --- ci/install.sh | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e3c44e..4ba5561 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,9 +8,6 @@ stages: job install: script: - chmod a+x ci/install.sh - - export CI_PROJECT_NAME - - export CI_BUILD_REPO - - export - ./ci/install.sh - deactivate stage: install diff --git a/ci/install.sh b/ci/install.sh index 472a564..c02589d 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -2,12 +2,14 @@ # This schript is used to setup what needs to be (virtualenv and stuff) # before running the pthon setup.py part # We need those variables -if [ -z "$CI_PROJECT_NAME" ] +if [ -z "$CI_PROJECT_DIR" ] then - echo "CI_PROJECT_NAME undefined" + echo "CI_PROJECT_DIR undefined" exit 1 fi +export CI_PROJECT_NAME=$(basename $CI_PROJECT_DIR) + if [ -z "$CI_BUILD_REPO" ] then echo "CI_BUILD_REPO undefined" -- GitLab