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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.5 KiB
YAML
Raw Normal View History

2022-08-13 15:12:31 +05:30
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Swift.gitlab-ci.yml
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
2022-11-25 23:54:43 +05:30
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production