-
Notifications
You must be signed in to change notification settings - Fork 52
/
.gitlab-ci.yml
44 lines (41 loc) · 861 Bytes
/
.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
stages:
- test
- build_coverage
- deploy_coverage
unit_test: # Name of the lane
image: cirrusci/flutter:stable
stage: test
script:
- /bin/sh bin/coverage-ci.sh
artifacts:
paths:
- coverage/
coverage: '/^lines\.+: |\d+\.?\d+\%/'
except:
- /^release-.*$/
coverage_test: # Name of the lane
image: gableroux/flutter:v1.2.1
stage: build_coverage
script:
- echo "${CODECOV_TOKEN}"
- genhtml -o coverage coverage/lcov.info
- bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}"
artifacts:
paths:
- coverage/
coverage: '/^lines\.+: |\d+\.?\d+\%/'
except:
- /^release-.*$/
pages:
image: alpine
stage: deploy_coverage
dependencies:
- unit_test
script:
- mkdir public
- mv coverage/ public/coverage/
artifacts:
paths:
- public
# only:
# - master