Skip to content

Commit b50b8fa

Browse files
committed
Add Travis
1 parent 0631c67 commit b50b8fa

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.travis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
language: android
2+
jdk: oraclejdk8
3+
sudo: required
4+
dist: precise
5+
before_cache:
6+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
7+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
8+
cache:
9+
yarn: true
10+
directories:
11+
- $HOME/.gradle/caches/
12+
- $HOME/.gradle/wrapper/
13+
- node_modules
14+
android:
15+
components:
16+
- platform-tools
17+
- tools
18+
- build-tools-28.0.2
19+
- android-28
20+
- extra-android-m2repository
21+
- extra-google-google_play_services
22+
- extra-google-m2repository
23+
licenses:
24+
- android-sdk-preview-license-.+
25+
- android-sdk-license-.+
26+
- google-gdk-license-.+
27+
before_install:
28+
- nvm install 7
29+
- node --version
30+
- travis_retry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
31+
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
32+
- travis_retry sudo apt-get update -qq
33+
- travis_retry sudo apt-get install -y -qq yarn
34+
- chmod +x ./android/gradlew
35+
- openssl aes-256-cbc -K $encrypted_a4686187fef3_key -iv $encrypted_a4686187fef3_iv -in TestKeyStore.jsk.enc -out ./android/app/TestKeyStore.jsk-d
36+
# - gem install fastlane --no-rdoc --no-ri --no-document --quiet
37+
install:
38+
- yarn install
39+
script:
40+
- cd android && ./gradlew clean
41+
# - fastlane beta
42+
after_script:
43+
- ./gradlew assembleRelease crashlyticsUploadDistributionRelease -Pandroid.injected.signing.store.file=./app/$RNSAMPLE_RELEASE_STORE_FILE -Pandroid.injected.signing.store.password=$RNSAMPLE_RELEASE_STORE_PASSWORD -Pandroid.injected.signing.key.alias=$RNSAMPLE_RELEASE_KEY_ALIAS -Pandroid.injected.signing.key.password=$RNSAMPLE_RELEASE_KEY_PASSWORD
44+
branches:
45+
only:
46+
- master
47+
notifications:
48+
email:
49+
on_success: never
50+
on_failure: always

android/app/TestKeyStore.jsk.enc

2.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)