debian-mirror-gitlab/lib/gitlab/ci/templates/Swift.gitlab-ci.yml

33 lines
1,016 B
YAML
Raw Normal View History

2016-09-29 09:46:39 +05:30
# Lifted from: https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/
2018-11-20 20:47:30 +05:30
# This file assumes an own GitLab CI runner, setup on a macOS system.
2016-09-29 09:46:39 +05:30
stages:
- build
2019-07-31 22:56:46 +05:30
- test
2016-09-29 09:46:39 +05:30
- archive
2019-07-31 22:56:46 +05:30
- deploy
2016-09-29 09:46:39 +05:30
build_project:
stage: build
script:
- xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName | xcpretty
2018-10-15 14:42:47 +05:30
- xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.3' | xcpretty -s
2016-09-29 09:46:39 +05:30
tags:
2018-10-15 14:42:47 +05:30
- ios_11-3
- xcode_9-3
- macos_10-13
2016-09-29 09:46:39 +05:30
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"
2021-04-17 20:07:23 +05:30
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2016-09-29 09:46:39 +05:30
artifacts:
paths:
2019-09-04 21:01:54 +05:30
- build/ProjectName.ipa
2016-09-29 09:46:39 +05:30
tags:
2018-10-15 14:42:47 +05:30
- ios_11-3
- xcode_9-3
- macos_10-13