diff --git a/.travis.yml b/.travis.yml index 1f0c6156fb..c9281824de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,9 @@ matrix: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ sudo: required - before_install: .travis/before_install.sh + before_install: + - nvm install 8 + - .travis/before_install.sh android: components: - build-tools-23.0.1 @@ -43,6 +45,8 @@ matrix: before_install: .travis/before_install.sh script: .travis/run.sh - stage: deploy + language: node_js + node_js: 8 script: .travis/deploy.sh deploy: provider: s3 diff --git a/.travis/before_install.sh b/.travis/before_install.sh index 0137fab409..b0594f5eab 100755 --- a/.travis/before_install.sh +++ b/.travis/before_install.sh @@ -5,7 +5,6 @@ if [ "$LANE" = "ios" ]; then brew install yarn brew outdated yarn || brew upgrade yarn elif [ "$LANE" = "android" ]; then - nvm install 8 node --version 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