-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.gitlab-ci.yml
89 lines (81 loc) · 1.63 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
before_script:
- pod --version
stages:
- init
- package
- lint
- releasepod
- updateapp
init:
tags:
- iOS
stage: init
script:
- pod repo update baidao-ios-ytx-pod-specs
- git config --get user.name
- git config --get user.email
- echo "CI_RUNNER_ID $CI_RUNNER_ID"
- echo "CI_RUNNER_DESCRIPTION $CI_RUNNER_DESCRIPTION"
- echo "CI_PROJECT_PATH $CI_PROJECT_PATH"
- echo "CI_PROJECT_URL $CI_PROJECT_URL"
- echo "CI_PROJECT_DIR $CI_PROJECT_DIR"
- echo "CI_PROJECT_NAME $CI_PROJECT_NAME"
package:
tags:
- iOS
stage: package
only:
- master
artifacts:
paths:
- $CI_PROJECT_NAME/lib
script:
- find ./$CI_PROJECT_NAME/ -regex '.*\.a'
- time sh pod_package.sh
test:
tags:
- iOS
stage: lint
except:
- master
script:
- cd Example
- pwd
- time IS_SOURCE=1 pod install --verbose
- time xcodebuild test -workspace $CI_PROJECT_NAME.xcworkspace -scheme $CI_PROJECT_NAME-Example -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.0' | xcpretty
lint_source:
tags:
- iOS
stage: lint
only:
- master
script:
- find ./$CI_PROJECT_NAME/ -regex '.*\.a'
- time sh lint_source.sh
lint_binary:
tags:
- iOS
stage: lint
only:
- master
script:
- find ./$CI_PROJECT_NAME/ -regex '.*\.a'
- time sh lint_binary.sh
releasepod:
tags:
- iOS
only:
- master
stage: releasepod
script:
- find ./$CI_PROJECT_NAME/ -regex '.*\.a'
- time sh zip.sh
- time sh buildpod.sh
# updateapp:
# tags:
# - iOS
# only:
# - master
# stage: updateapp
# script:
# - time sh release_pb_app.sh