-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
63 lines (57 loc) · 1.21 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
stages:
- test
- build
- deploy
before_script:
- git config user.email "gitlab-ci@gitlab.i.etech.sk"
- git config user.name "gitlab-ci"
- CI_PUSH_REPO=`echo $CI_REPOSITORY_URL | perl -pe 's#.*@gitlab\.com\/(.+?(\:\d+)?)/#git\@github.com:\1/#'`
- git checkout -B "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_SHA}"
- git remote set-url --push origin "${CI_PUSH_REPO}"
test UpdateCenter:
stage: test
except:
- tags
tags:
- ios
script:
- fastlane test
- fastlane documentation
artifacts:
paths:
- fastlane/test_output/UpdateCenter
- fastlane/docs/UpdateCenter
expire_in: 1 day
build UpdateCenter:
stage: build
except:
- tags
tags:
- ios
script:
- fastlane lint_pod
deploy UpdateCenter:
stage: deploy
tags:
- ios
script:
- fastlane release_pod
only:
- master
pages:
stage: deploy
tags:
- ios
script:
- rm -rf public/coverage
- rm -rf public/docs
- mkdir -p public/coverage
- mkdir -p public/docs
- mv fastlane/test_output/UpdateCenter/coverage public/coverage/UpdateCenter
- mv fastlane/docs/UpdateCenter public/docs/UpdateCenter
artifacts:
paths:
- public
expire_in: 1 day
only:
- master