Unverified Commit 0a2cf94c authored by Nathan Van Overloop's avatar Nathan Van Overloop
Browse files

centralnic/issues#3790: add pipeline

parent 60068cb2
#this is the latest template to assist in copying
image: centralnicregistry/syntaxtester:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- syntax-check
- git-robot
default:
before_script:
- tests/prep-alpine-env.sh
step-syntax-check:
stage: syntax-check
script:
- export DYNAMIC_ENV_VAR=DEVELOP
- echo running tests in $DYNAMIC_ENV_VAR
- tests/testlints.sh
merge-master-to-ote:
stage: git-robot
only:
- master
script:
- eval $(ssh-agent -s)
- bash -c "ssh-add <(echo '$GIT_SSH_PRIV_KEY')"
- ssh-add -L
- export TMP_DIR=$(mktemp -d -t ./ci-XXXXXXXXXX)
- cd $TMP_DIR
- pwd
- bash -c "set -x; git clone git@git.centralnic.com:${CI_PROJECT_PATH}.git"
- cd ${CI_PROJECT_NAME}
- git checkout master
- git checkout --track origin/ote
- git merge master
- git push origin ote
merge-ote-to-dev:
stage: git-robot
only:
- ote
script:
- eval $(ssh-agent -s)
- bash -c "ssh-add <(echo '$GIT_SSH_PRIV_KEY')"
- ssh-add -L
- export TMP_DIR=$(mktemp -d -t ./ci-XXXXXXXXXX)
- cd $TMP_DIR
- pwd
- bash -c "set -x; git clone git@git.centralnic.com:${CI_PROJECT_PATH}.git"
- cd ${CI_PROJECT_NAME}
- git checkout --track origin/ote
- git checkout --track origin/dev
- git merge ote
- git push origin dev
\ No newline at end of file
[submodule "tests"]
path = tests
url = ../../centralnic/tests.git
Subproject commit 118518ae0cc4755868f05b96f15d126c79caacb6
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