forked from EdgeVerve/feel
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
24 lines (24 loc) · 1.27 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
build_job:
script:
- evf-paas login -u admin -p Anything_f9 evfapp.dev -d && source $HOME/evf-paas/evfapp.dev/install_env.sh
- npm config set registry $NPM_REGISTRY
- npm config set fetch-retries 0
- npm config set loglevel warn
- time npm install --no-optional
- gulp lint
- export exit_status=0
- if gulp test-ci-html; then exit_status=0; else exit_status=1; fi
- if echo $CI_BUILD_REPO | grep "oecloud.io/feel.git"; then export MAIN_BRANCH=1; else export MAIN_BRANCH=0; fi
- export MAIN_BRANCH=1
- if [ $MAIN_BRANCH -eq 0 ]; then echo "Not the main project, hence not sending coverage report to evgit..."; exit $exit_status; fi
- echo "Sending coverage reports to evgit..."
- tar -cf feel.tar -C ./coverage/lcov-report/ .
- ssh [email protected] 'rm -rf /data/documentation-portal/coverage/feel'
- scp feel.tar [email protected]:/data/documentation-portal/coverage/
- ssh [email protected] 'mkdir -p /data/documentation-portal/coverage/feel'
- ssh [email protected] 'tar -xf /data/documentation-portal/coverage/feel.tar -C /data/documentation-portal/coverage/feel'
- ssh [email protected] 'rm -rf /data/documentation-portal/coverage/feel.tar'
- echo "Coverage report updated"
- exit $exit_status
tags:
- EVF-PAAS