-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (39 loc) · 946 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
image:
name: ghcr.io/cirruslabs/flutter:stable
variables:
GIT_SUBMODULE_STRATEGY: recursive
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
LANG: "en_US.UTF-8"
stages:
- test
cache:
paths:
- /flutter/bin/cache/dart-sdk
lint:
stage: test
script:
- flutter clean
- flutter pub get
- flutter --version
- flutter analyze
tags:
- kubernetes
test_coverage:
stage: test
script:
- flutter --version
- dart pub global activate junitreport
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- flutter pub get
- flutter test --coverage --reporter=expanded --machine | tojunit > testreport.xml
- lcov -r coverage/lcov.info '*/__test*__/*' -o coverage/lcov_cleaned.info
- genhtml coverage/lcov_cleaned.info --output=coverage
artifacts:
expire_in: 1 day
reports:
junit: testreport.xml
paths:
- testreport.xml
- coverage
tags:
- kubernetes