2016-09-01 19:20:40 -04:00
|
|
|
# Lifted from: https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/
|
2018-09-26 11:59:11 -04:00
|
|
|
# This file assumes an own GitLab CI runner, setup on a macOS system.
|
2016-09-01 19:20:40 -04:00
|
|
|
stages:
|
|
|
|
- build
|
2019-04-05 06:18:10 -04:00
|
|
|
- test
|
2016-09-01 19:20:40 -04:00
|
|
|
- archive
|
2019-04-05 06:18:10 -04:00
|
|
|
- deploy
|
2016-09-01 19:20:40 -04:00
|
|
|
|
|
|
|
build_project:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName | xcpretty
|
2018-05-09 07:06:41 -04:00
|
|
|
- xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.3' | xcpretty -s
|
2016-09-01 19:20:40 -04:00
|
|
|
tags:
|
2018-05-09 07:06:41 -04:00
|
|
|
- ios_11-3
|
|
|
|
- xcode_9-3
|
|
|
|
- macos_10-13
|
2016-09-01 19:20:40 -04:00
|
|
|
|
|
|
|
archive_project:
|
|
|
|
stage: archive
|
|
|
|
script:
|
|
|
|
- xcodebuild clean archive -archivePath build/ProjectName -scheme SchemeName
|
|
|
|
- xcodebuild -exportArchive -exportFormat ipa -archivePath "build/ProjectName.xcarchive" -exportPath "build/ProjectName.ipa" -exportProvisioningProfile "ProvisioningProfileName"
|
|
|
|
only:
|
2019-11-13 16:06:45 -05:00
|
|
|
- master
|
2016-09-01 19:20:40 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-06-05 12:31:35 -04:00
|
|
|
- build/ProjectName.ipa
|
2016-09-01 19:20:40 -04:00
|
|
|
tags:
|
2018-05-09 07:06:41 -04:00
|
|
|
- ios_11-3
|
|
|
|
- xcode_9-3
|
|
|
|
- macos_10-13
|