Commit 1b3e96283ff4be4e4bd1517c0fe0eba8e8e81271

Authored by Georg Hopp
1 parent 39c9864b

Use env var to specify coverage folder.

Showing 1 changed file with 19 additions and 5 deletions
@@ -12,17 +12,31 @@ build: @@ -12,17 +12,31 @@ build:
12 script: 12 script:
13 - make 13 - make
14 14
15 -test: 15 +.coverage: &coverage
  16 + - make coverage-html
  17 + - ssh ci_upload@192.168.20.60 install -d trbase
  18 +
  19 +coverage:dev:
16 stage: test 20 stage: test
  21 + except:
  22 + - tags
17 script: 23 script:
18 - - make coverage-html  
19 - - ssh ci_upload@192.168.20.60 install -d trbase 24 + <<: *coverage
20 - > 25 - >
21 - rsync -vaurl --delete tests/coverage 26 + rsync -vaurl --delete tests/coverage/*
22 ci_upload@192.168.20.60:~/trbase/coverage_${CI_BUILD_ID} 27 ci_upload@192.168.20.60:~/trbase/coverage_${CI_BUILD_ID}
23 - > 28 - >
24 ssh ci_upload@192.168.20.60 29 ssh ci_upload@192.168.20.60
25 - ln -s trbase/coverage_${CI_BUILD_ID} coverage_latest 30 + ln -s trbase/coverage_${CI_BUILD_ID} trbase/coverage_latest
  31 +
  32 +coverage:tag:
  33 + stage: test
  34 + only:
  35 + - tags
  36 + script:
  37 + <<: *coverage
  38 + - rsync -vaurl --delete tests/coverage ci_upload@192.168.20.60:~/trbase/
  39 + - ssh ci_upload@192.168.20.60 ln -s trbase/coverage trbase/coverage_latest
26 40
27 dist: 41 dist:
28 stage: deploy 42 stage: deploy
Please register or login to post a comment