-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (36 loc) · 968 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
# This is the configuration file for git-lab's CI service.
# We have 4 stages:
stages:
# Make sure everything compiles OK
- build
# A unit test stage, where the code core is tested
- test
# A re-deployment stage that will automatically update our existing S3 deployment
- deploy
# Stage where we test the iOS build
iOSBuild:
stage: build
script:
- xcodebuild -workspace ./Example/minjection.xcworkspace -scheme minjection-Example -destination "platform=iOS Simulator,name=iPhone X" build
- pod lib lint
retry: 2
tags:
- iOS
# Stage where we test the iOS Unit tests
iOSUnitTests:
stage: test
script:
- xcodebuild -workspace ./Example/minjection.xcworkspace -scheme minjection-Example -destination "platform=iOS Simulator,name=iPhone X" test
retry: 1
tags:
- iOS
# A stage to clear and repopulate the QA deployment's information
publishCocoapod:
stage: deploy
when: manual
only:
- master
script:
- pod trunk push minjection.podspec
tags:
- x86