From 3083ee805750bef7d340abd422c9e4f3a2b0155f Mon Sep 17 00:00:00 2001 From: Filipe Brito Date: Tue, 1 Oct 2019 17:23:15 -0300 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1ebcae3f..edbbd6527 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,19 +107,31 @@ jobs: steps: - checkout + - run: + name: Install Node 8 + command: | + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash + source ~/.nvm/nvm.sh + # https://github.com/creationix/nvm/issues/1394 + set +e + nvm install 8 + echo 'export PATH="/home/circleci/.nvm/versions/node/v8.16.0/bin:$PATH"' >> ~/.bash_profile + source ~/.bash_profile + - restore_cache: name: Restore NPM cache key: node-modules-{{ checksum "yarn.lock" }} + - run: + name: Install React Native CLI + command: | + npm i -g react-native-cli + - run: name: Install NPM modules command: | yarn - - restore_cache: - name: Restore gradle cache - key: android-{{ checksum "android/build.gradle" }}-{{ checksum "android/app/build.gradle" }} - - run: name: restore files from ENV command: | @@ -141,12 +153,6 @@ jobs: paths: - ./node_modules - - save_cache: - name: Save gradle cache - key: android-{{ checksum "android/build.gradle" }}-{{ checksum "android/app/build.gradle" }} - paths: - - ~/.gradle - android-play-experimental-build: <<: *defaults docker: