-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
63 lines (59 loc) · 1.22 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
default:
before_script:
- echo "${PATH}"
- date
- pwd
- unset cd
- eval "$(rbenv init -)"
- bundle install
- xcversion install "13.2.1"
stages:
- test
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
swift lint:
timeout: 5 minutes
dependencies: []
stage: test
artifacts:
when: always
paths:
- fastlane/codequality_report.json
reports:
codequality: fastlane/codequality_report.json
script:
- bundle exec fastlane lint
rules:
- if: '$SWIFT_LINT_DISABLED'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH == "develop"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
tags:
- macos
test_project:
stage: test
artifacts:
expire_in: 7d
when: always
paths:
- fastlane/test_output/tests.xml
- logs
reports:
coverage_report:
coverage_format: cobertura
path: cobertura.xml
junit: test_output/tests.xml
coverage: '/Test Coverage\: \d+(?:\.\d*)?\%/'
only:
- merge_requests
- master
- develop
script:
- bundle exec fastlane tests
tags:
- macos