-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
38 lines (35 loc) · 1.08 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
stages:
- build
- archive
- upload
variables:
app_id: zmyowzV25M
release: ios
release_notes: "for test"
notify: "false"
build1:
stage: build
script:
- xcodebuild clean -project test.xcodeproj -scheme test
- xcodebuild test -project test.xcodeproj -scheme test -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.2'
tags:
- jianbo-macos
archive-job:
stage: archive
script:
- xcodebuild clean archive -archivePath build/test -scheme test
- xcodebuild -exportArchive -archivePath "build/test.xcarchive" -exportPath "build/test" -exportOptionsPlist "ExportOptions.plist"
artifacts:
paths:
- build/test
tags:
- jianbo-macos
upload-job:
stage: upload
before_script:
- export INSTALL_DIR=$CI_PROJECT_DIR
- curl -Ls https://github.com/Massad/cli/releases/latest/download/install | bash
script:
- $CI_PROJECT_DIR/ta-cli publish --api_token=$TESTAPP_API_TOKEN --app_id=$app_id --release=$release --ipa=$CI_PROJECT_DIR/build/test/Apps/test.ipa --release_notes=$release_notes --notify=$notify --source=gitlab
tags:
- linux