Commit 2ab0e314 authored by okhin's avatar okhin 🚴

CI_PROJECT_NAME doesn't exist yet

parent aece5f19
Pipeline #70 failed with stage
in 10 seconds
...@@ -8,9 +8,6 @@ stages: ...@@ -8,9 +8,6 @@ stages:
job install: job install:
script: script:
- chmod a+x ci/install.sh - chmod a+x ci/install.sh
- export CI_PROJECT_NAME
- export CI_BUILD_REPO
- export
- ./ci/install.sh - ./ci/install.sh
- deactivate - deactivate
stage: install stage: install
......
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
# This schript is used to setup what needs to be (virtualenv and stuff) # This schript is used to setup what needs to be (virtualenv and stuff)
# before running the pthon setup.py part # before running the pthon setup.py part
# We need those variables # We need those variables
if [ -z "$CI_PROJECT_NAME" ] if [ -z "$CI_PROJECT_DIR" ]
then then
echo "CI_PROJECT_NAME undefined" echo "CI_PROJECT_DIR undefined"
exit 1 exit 1
fi fi
export CI_PROJECT_NAME=$(basename $CI_PROJECT_DIR)
if [ -z "$CI_BUILD_REPO" ] if [ -z "$CI_BUILD_REPO" ]
then then
echo "CI_BUILD_REPO undefined" echo "CI_BUILD_REPO undefined"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment