Commit a4bf4960df35ba43f9a05fd389cbd75fb3d124be

Authored by Georg Hopp
1 parent 9977a79e

Use env var to specify coverage folder.

Showing 1 changed file with 9 additions and 4 deletions
@@ -11,17 +11,22 @@ build: @@ -11,17 +11,22 @@ build:
11 stage: build 11 stage: build
12 script: 12 script:
13 - make 13 - make
14 - - set  
15 14
16 -.test: 15 +test:
17 stage: test 16 stage: test
18 script: 17 script:
19 - make coverage-html 18 - make coverage-html
20 - ssh ci_upload@192.168.20.60 install -d trbase 19 - ssh ci_upload@192.168.20.60 install -d trbase
21 - - rsync -vaurl --delete tests/coverage ci_upload@192.168.20.60:~/trbase/ 20 + - >
  21 + rsync -vaurl --delete tests/coverage
  22 + ci_upload@192.168.20.60:~/trbase/coverage_${CI_BUILD_ID}
  23 + - >
  24 + ssh ci_upload@192.168.20.60
  25 + ln -s trbase/coverage_${CI_BUILD_ID} coverage_latest
22 26
23 -.dist: 27 +dist:
24 stage: deploy 28 stage: deploy
  29 + only: tags
25 script: 30 script:
26 - make dist 31 - make dist
27 - ssh ci_upload@192.168.20.60 install -d trbase/artifacts 32 - ssh ci_upload@192.168.20.60 install -d trbase/artifacts
Please register or login to post a comment