diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-09-26 18:39:27 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-09-26 18:39:27 +0300 |
commit | f5f5d6ea1f816f2d695eca74b3923457dcccbdff (patch) | |
tree | 22b25ffd74a9012f9a8cba9f597d9db4ba50719e /lib/gitlab/ci/templates/Swift.gitlab-ci.yml | |
parent | 82ea7195cdeab1f9177796517b7267cb7db0fae0 (diff) |
Resolve "Un-vendor CI templates"
Diffstat (limited to 'lib/gitlab/ci/templates/Swift.gitlab-ci.yml')
-rw-r--r-- | lib/gitlab/ci/templates/Swift.gitlab-ci.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/Swift.gitlab-ci.yml b/lib/gitlab/ci/templates/Swift.gitlab-ci.yml new file mode 100644 index 00000000000..b97bfd460f2 --- /dev/null +++ b/lib/gitlab/ci/templates/Swift.gitlab-ci.yml @@ -0,0 +1,30 @@ +# Lifted from: https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/ +# This file assumes an own GitLab CI runner, set up on a macOS system. +stages: + - build + - archive + +build_project: + stage: build + script: + - xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName | xcpretty + - xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.3' | xcpretty -s + tags: + - ios_11-3 + - xcode_9-3 + - macos_10-13 + +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: + - master + artifacts: + paths: + - build/ProjectName.ipa + tags: + - ios_11-3 + - xcode_9-3 + - macos_10-13 |