This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
106 lines (86 loc) · 3.82 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
95
96
97
98
99
100
101
102
103
104
105
106
addons:
ssh_known_hosts: github.com # required to allow git clone certicates repo
notifications:
email:
on_success: never
on_failure: always
cache:
bundler: true
directories:
- $HOME/.npm
matrix:
include:
- stage: Deploy iOS 🍏
os: osx
osx_image: xcode12.5
language: objective-c
node_js: false
before_install:
- nvm install 14.16.1 # enforce using same version as local builds
- npm i -g [email protected] # enforce using same version as local builds
- nvm alias default 14.16.1 # otherwise sentry-cli will fail with a cryptic error
- node --version
- npm --version
- gem install fastlane --version 2.118.1 --no-document --quiet
# Required after upgrading to RN v0.59.10, otherwise Sentry code inside
# "Bundle React Native code and images" build phase fails.
# See https://github.com/getsentry/sentry-react-native/issues/135#issuecomment-447366274
- brew install watchman
# Decrypt SSH deploy key for GitHub certificates repo and add to agent
- openssl aes-256-cbc -K $encrypted_89b232081b73_key -iv $encrypted_89b232081b73_iv
-in github_deploy_key.enc -out github_deploy_key -d
- chmod 600 github_deploy_key
- eval $(ssh-agent -s)
- ssh-add github_deploy_key
# Decrypt Sentry properties file and add copy to /ios directory
- openssl aes-256-cbc -K $encrypted_ace616ffe366_key -iv $encrypted_ace616ffe366_iv
-in sentry.properties.enc -out ios/sentry.properties -d
install:
- npm ci || travis_terminate 1
script:
# Create .env file
- npm run env || travis_terminate 1
- cat .env
# Supposedly this shouldn't be necesary, possible RN bug?
# See https://github.com/facebook/react-native/issues/18472
- npm i -g [email protected]
- react-native info
- npm run ios:bundle -- --dev false || travis_terminate 1
- npm run ios:beta
- stage: Deploy Android 🤖
language: android
jdk: oraclejdk8
node_js: false
android:
components:
- tools
- platform-tools
- android-28
- extra-google-m2repository
- extra-google-google_play_services
before_install:
- nvm install 14.16.1 # enforce using same version as local builds
- npm i -g [email protected] # enforce using same version as local builds
- nvm alias default 14.16.1 # otherwise sentry-cli will fail with a cryptic error
- node --version
- npm --version
- gem install fastlane --version 2.118.1 --no-document --quiet
- yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;28.0.3" # accept android licenses
# After upgrading to RN v0.59.10, we need to increase the number of inotify watches
# See https://github.com/fbsamples/f8app/issues/55#issuecomment-228995680
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# Decrypt Sentry properties file and add copy to /android directory
- openssl aes-256-cbc -K $encrypted_ace616ffe366_key -iv $encrypted_ace616ffe366_iv
-in sentry.properties.enc -out android/sentry.properties -d
- openssl aes-256-cbc -K $encrypted_2cfeec998f68_key -iv $encrypted_2cfeec998f68_iv
-in metronome-wallet.keystore.enc -out android/metronome-wallet.keystore -d
- openssl aes-256-cbc -K $encrypted_5573d999f481_key -iv $encrypted_5573d999f481_iv
-in MetronomeWalletSigningKey.json.enc -out MetronomeWalletSigningKey.json -d
install:
- npm ci || travis_terminate 1
script:
# Create .env file
- npm run env || travis_terminate 1
- cat .env
- npm run gradle-properties
- npm run android:beta