-
Notifications
You must be signed in to change notification settings - Fork 96
/
.travis.yml
51 lines (46 loc) · 1.64 KB
/
.travis.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
39
40
41
42
43
44
45
46
47
48
49
50
51
language: swift
osx_image: xcode12.2
env:
global:
- CI_BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
before_install:
- bundle install
- bundle exec pod install
jobs:
include:
- stage: "Build"
name: "Build internal app"
script:
- set -o pipefail
- echo "machine github.com login $GITHUB_API_TOKEN" >> ~/.netrc
- bundle exec fastlane download_profiles
- bundle exec fastlane archive_internal
- stage: "Test"
name: "Test app"
script:
- set -o pipefail
- bundle exec fastlane tests
- stage: "Archive, sign and deploy internal app"
name: "Archive Internal app"
if: branch = main
script:
- set -o pipefail
- echo "machine github.com login $GITHUB_API_TOKEN" >> ~/.netrc
- bundle exec fastlane download_profiles
- ./scripts/increment_build_number.sh
- bundle exec fastlane archive_internal
- bundle exec fastlane upload_symbols_to_crashlytics_internal
- bundle exec fastlane deploy_internal
- stage: "Archive, sign and deploy production app"
name: "Archive Production app"
if: branch = main # usually use `if: branch = release`
script:
- set -o pipefail
- echo "machine github.com login $GITHUB_API_TOKEN" >> ~/.netrc
- bundle exec fastlane download_profiles
- ./scripts/increment_build_number.sh
- bundle exec fastlane archive_appstore
- bundle exec fastlane upload_symbols_to_crashlytics_appstore
- bundle exec fastlane deploy_appstore
after_success:
- sleep 5 # Workaround for https://github.com/travis-ci/travis-ci/issues/4725