From 48bc0df144ce9144832690a2a4d9df38361ad7e2 Mon Sep 17 00:00:00 2001 From: Valentin Hristev <vhristev@vmware.com> Date: Sat, 18 Aug 2018 01:35:59 +0300 Subject: [PATCH] CI runner with Build > Dev > Valite stages --- .gitlab-ci.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6132a7f..d85255f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ stages: - build + - dev + - validation build: stage: build @@ -18,4 +20,33 @@ build: - cp -rf $CI_PROJECT_DIR $CI_PROJECT_NAME - cd $CI_PROJECT_NAME script: - - make \ No newline at end of file + - make + +dev: + stage: dev + tags: + - dev + before_script: + - ssh-keyscan code.vereign.com >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - git config --global url."ssh://git@code.vereign.com".insteadOf https://code.vereign.com + - export GOPATH="/home/gitlab-runner/go" + - export GOROOT="/usr/local/go" + - export PATH=$PATH:/root/development/go/bin:/usr/local/go/bin + script: + - ./kill.sh + - ./run.sh + - ps aux | grep wopi-agent + +validation: + stage: validation + tags: + - dev + before_script: + - cd /root/development/go/src/code.vereign.com/testing/framework + - export GOPATH="/home/gitlab-runner/go" + - export GOROOT="/usr/local/go" + - export PATH="/root/development/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/gradle/gradle-4.7-rc-1/bin:/usr/local/bin/node/bin/:/root/bin" + + script: + - sudo env PATH=$PATH gradle cucumber -Penv=local -Ptags=@smoke,~@wip -- GitLab