88 - MATCH_KEYCHAIN_PASSWORD=alpine
99 # dirty hack for https://github.com/travis-ci/travis-ci/issues/5092
1010 - PATH=${PATH/\.\/node_modules\/\.bin/}
11- # centralize some variables for pushing/committing
12- - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
13- - REPO=$(git config remote.origin.url)
14- -
SSH_REPO=${REPO/https:\/\/github.com\//[email protected] :} 15- # this just gives us a nice label to use
16- - ENCRYPTION_LABEL=199c454344e1
17- # set some other variables for the pushing process
18- - ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
19- - ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
20- - ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
21- - ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
22- - DEPLOY_KEY=scripts/travisci_deploy_key
2311 # variables that are used later on
24- - TRAVIS_NODE_VERSION=7
12+ - TRAVIS_NODE_VERSION=8
2513 - PUSH_BRANCH=0
2614 - CAN_DEPLOY=0
2715 - USE_EMULATOR=no
@@ -34,7 +22,7 @@ matrix:
3422 dist : trusty
3523 sudo : false
3624 language : node_js
37- node_js : ' 7 '
25+ node_js : ' 8 '
3826 env : [JS=yes, CAN_DEPLOY=yes]
3927
4028 - &android-base
@@ -49,11 +37,15 @@ matrix:
4937 - tools
5038 - platform-tools
5139 - build-tools-23.0.1
40+ - build-tools-23.0.2
41+ - build-tools-25.0.1
5242 - build-tools-23.0.3
5343 - build-tools-25.0.2
5444 - build-tools-25.0.3
45+ - build-tools-26.0.1
5546 - android-23
5647 - android-25
48+ - android-26
5749 - extra-android-m2repository
5850 - extra-google-m2repository
5951
@@ -72,7 +64,7 @@ matrix:
7264 - os : osx
7365 language : objective-c
7466 osx_image : xcode8.3
75- node_js : ' 7 '
67+ node_js : ' 8 '
7668 env : [IOS=yes, CAN_DEPLOY=yes]
7769
7870
@@ -96,8 +88,15 @@ before_install:
9688 - rvm use ruby-2.3.1 --install --binary --create
9789 - gem install bundler
9890
99- # only deploy from the once-daily cron-triggered jobs or from tagged commits
100- - if [[ $CAN_DEPLOY = yes && ( $TRAVIS_EVENT_TYPE = cron || $TRAVIS_TAG != "" ) ]]; then run_deploy=1; fi
91+ # only deploy from:
92+ # - cron-triggered jobs
93+ # - tagged commits
94+ # - commits whose messages contain the string [ci run beta]
95+ - if [[ $CAN_DEPLOY = yes && (
96+ $TRAVIS_EVENT_TYPE == "cron" ||
97+ $TRAVIS_TAG != "" ||
98+ $TRAVIS_COMMIT_MESSAGE == *"[ci run beta]"*
99+ ) ]]; then run_deploy=1; fi
101100
102101 # run our before_install sequence
103102 - bash scripts/travis/before_install.sh
@@ -106,7 +105,10 @@ install:
106105 - bash scripts/travis/install.sh
107106
108107before_script :
109- - bash scripts/travis/before_script.sh
108+ # Fire up the Android emulator
109+ - if [[ $ANDROID && $USE_EMULATOR = yes ]]; then
110+ bundle exec fastlane android ci-emulator;
111+ fi
110112
111113script :
112114 - bash scripts/travis/script.sh
@@ -124,6 +126,7 @@ deploy:
124126 local_dir : docs/
125127 on :
126128 branch : master
129+ condition : $JS
127130
128131before_cache :
129132 - rm -f "$HOME/.gradle/caches/modules-2/modules-2.lock"
0 commit comments