Skip to content
Snippets Groups Projects
Commit 763ab60a authored by jurgenhaas's avatar jurgenhaas
Browse files

#1 Testing

parent 1b392db6
Branches
No related tags found
No related merge requests found
...@@ -5,9 +5,6 @@ stages: ...@@ -5,9 +5,6 @@ stages:
- test - test
- deploy - deploy
variables:
DBREQUIRED: "no"
.wait: .wait:
script: script:
- while [ ! -f /tmp/foo.txt ]; do echo "waiting..."; sleep 1; done - while [ ! -f /tmp/foo.txt ]; do echo "waiting..."; sleep 1; done
...@@ -58,6 +55,7 @@ variables: ...@@ -58,6 +55,7 @@ variables:
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: | script: |
DBREQUIRED="no"
if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
DBREQUIRED="yes" DBREQUIRED="yes"
elif [[ "$CI_COMMIT_REF_NAME" == *"[PULL_DB]"* ]]; then elif [[ "$CI_COMMIT_REF_NAME" == *"[PULL_DB]"* ]]; then
...@@ -75,6 +73,12 @@ variables: ...@@ -75,6 +73,12 @@ variables:
fi fi
fi fi
fi fi
export $DBREQUIRED
if [[ "$DBREQUIRED" == "yes" ]]; then
echo "DB need to be pulled."
else
echo "No pulling required."
fi
except: except:
variables: variables:
- $CAE - $CAE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment