-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
38 lines (29 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
variables:
archive_scheme: Linhome
archive_path: linhome.xcarchive
export_path: linhome-adhoc-ipa
export_options_plist: linhome-adhoc.plist
GIT_SUBMODULE_STRATEGY: recursive
.linux-prepare:
before_script:
##
## If a LINDOOR_USER_KEY is defined then start ssh-agent and add the key
##
- if ! [ -z ${LINDOOR_USER_KEY+x} ]; then echo "$LINDOOR_USER_KEY" | tr -d '\r' | ssh-add - > /dev/null; fi
- if ! [ -z ${SCP_PRIVATE_KEY+x} ]; then echo "$SCP_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null; fi
job-ios:
extends: .linux-prepare
stage: build
tags: [ "macosx-xcode12" ]
script:
- pod install --repo-update --verbose
- pwd
- xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./linhome.xcworkspace -UseModernBuildSystem=YES -allowProvisioningUpdates
- xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist ./$export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=YES
- mv $export_path/$archive_scheme.ipa $export_path/$archive_scheme-`./git-version.sh`.ipa
artifacts:
paths:
- $archive_path
- $export_path
when: always
expire_in: 1 week