-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
60 lines (56 loc) · 1.46 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
stages:
- build
- sync
- publish
variables:
GIT_STRATEGY: clone
FF_ENABLE_BASH_EXIT_CODE_CHECK: "true"
build:cocoapods:
stage: build
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/IndoorLocation/indoor-location-ios.git"
- git config --global user.email "maxime.colmant@gmail.com"
- git config --global user.name "Maxime Colmant"
script:
- ./ci/build-cocoapods.sh
artifacts:
paths:
- Podfile.lock
- indoorlocation/
tags:
- ios
sync:repo:
stage: sync
image: debian:buster
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y git
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/IndoorLocation/indoor-location-ios.git"
- git config --global user.email "maxime.colmant@gmail.com"
- git config --global user.name "Maxime Colmant"
script:
- ./ci/sync-repo-script.sh
dependencies:
- build:cocoapods
only:
- branches
publish:
stage: publish
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/IndoorLocation/indoor-location-ios.git"
- git config --global user.email "maxime.colmant@gmail.com"
- git config --global user.name "Maxime Colmant"
script:
- ./ci/publish-script.sh
dependencies:
- build:cocoapods
only:
- tags
tags:
- ios