-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
94 lines (91 loc) · 4.19 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
cache:
yarn: true
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules
branches:
only:
- master
- develop
notifications:
email:
on_success: never
on_failure: always
slack:
secure: aR7CUgdWuAU+fthj50nD4k4PwC0lN3Ul5uIrb90Pv57kgm450Jp1h/pNcF/x+KayXWua+K009AG3AA/ginQhNvds0N12pnADC1lvGALaBtcfGJpElhHUSgvhkV/DbDcgkhmQibZfeR/D29yESsZ9PZ0qNKqK6z9AiQQlFS6Rogq/IUNRfC1GD472s/evCDek07Ywka7bNkIUaOXsI19R8cKj2bsC0jJRV+F0LMYLpjC4uBCOo57P9giLPA5+hGx6wrjmIo94S3H1wWXSJjua/JA7Ixqx34CyUJ1vLfEAeQppX0p5Zln/H2qhcve1ECCpMvQm2AFnE1IHoIZS9esx4qJWGpSfvqPuOY4QRnKN0IwjzSXPVMhkXXRnU7GYKHGtEQkQUhEGApVCezutQBkSDViy5oY4PDctFHuXprZWYIHiel6gZksM5891w2DSXsHsc99PQZpBEM+1/bkkN42PzYJocq13Iz79ncsGn4iWSbnqSGVJMj43sna3CaXxoH2hfQoiYUjCeXmpqfTbay36lf6UMu8it/IyJOHdhKxmkVlN+BVeExBYdVMgE0Mbw2ZbeXaOW2BPXeE3Y20UtNvCAqDY4jzvfRj3mJIdqPvK4aj1wTh+aF/wGGXkQ96ZpL5P34LH1aRvv9WFpikjuqKhIpcuqzSpRFdu977yCPqe+BE=
matrix:
include:
- language: android
jdk: oraclejdk8
sudo: required
dist: xenial
group: edge
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
android:
components:
- tools
- tools #Call it again so it installs the tools
- build-tools
- platform-tools
- build-tools-27.0.3
- android-27
- add-on
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- yes | sdkmanager "platforms;android-27" "build-tools;27.0.3" "build-tools;27.0.0"
- nvm install 8.10.0
- node --version
- travis_retry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y -qq yarn
- gem install fastlane --no-document --quiet
- chmod +x ./android/gradlew
- openssl aes-256-cbc -K $encrypted_70d456c9569f_key -iv $encrypted_70d456c9569f_iv -in ./android/app/releaseFiles.tar.enc -out ./android/app/releaseFiles.tar -d
- tar xvf ./android/app/releaseFiles.tar -C ./android/app
# Doing this because travis seemed to mess up when looking for the keystore file
- mkdir -p ./android/app/app
- tar xvf ./android/app/releaseFiles.tar -C ./android/app/app
# - security delete-certificate -c "Apple Worldwide Developer Relations Certification Authority" # add this to resolve 'Could not install WWDR certificate'
install:
- yarn install
script:
- cd android && ./gradlew clean
- if [ "$TRAVIS_BRANCH" = "develop" ]; then
travis_wait fastlane alpha_googleplay;
travis_wait fastlane alpha_crashlytics;
fi
- if [ "$TRAVIS_BRANCH" = "master" ]; then travis_wait fastlane release; fi
- language: objective-c
os: osx
osx_image: xcode9.4
node_js: false
before_install:
- nvm install 8.10.0
- node --version
- travis_retry npm install -g yarn
- yarn -version
- gem install fastlane --no-document --quiet
- pod repo update
- openssl aes-256-cbc -K $encrypted_5a0bd94d6bee_key -iv $encrypted_5a0bd94d6bee_iv -in .deploy_key.enc -out ~/.ssh/deploy_key -d
- echo -e "Host github.com\n\tHostName github.com\n\tUser git\n\tIdentityFile ~/.ssh/deploy_key\n" >> ~/.ssh/config
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/deploy_key
install:
- travis_retry yarn
script:
- cd ios
# We don't need to check for release branch here because alpha/beta are all handled in TestFlight
# NOTE: Applying `travis_wait` here seems to stall the travis builds ...
- if [ "$TRAVIS_BRANCH" = "develop" ]; then fastlane alpha_testflight; fi
- if [ "$TRAVIS_BRANCH" = "master" ]; then fastlane release; fi