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

#1 Testing

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