From acd15dd409c27f6277a421d242eda68ea162b061 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Sat, 16 Mar 2019 10:39:42 -0700 Subject: [PATCH] Simplify CI config --- .circleci/config.yml | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5881145c9..4c1db5c865 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,39 +1,11 @@ -version: 2 +version: 3 jobs: build: docker: - - image: reactcommunity/node-ci:8.4.0-0 # custom image -- includes ocaml, libelf1, Yarn + - image: circleci/node:10 parallelism: 2 working_directory: ~/react-navigation steps: - checkout - - restore_cache: - # cache by branch + package.json, by branch, and then master - keys: - - v3-react-navigation-{{ .Branch }}-{{ checksum "package.json" }} - - v3-react-navigation-{{ .Branch }} - - v3-react-navigation-master - - run: yarn # install root deps - - run: ./scripts/test.sh # run tests - - setup_remote_docker - # - deploy: - # command: | - # set -x - # VER="17.03.0-ce" - # curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz - # tar -xz -C /tmp -f /tmp/docker-$VER.tgz - # mv /tmp/docker/* /usr/bin - # - # yarn global add exp - # set +x - # exp login -u "$EXPO_USERNAME" -p "$EXPO_PASSWORD" - # set -x - # cd examples/NavigationPlayground && yarn && exp publish --release-channel "${CIRCLE_SHA1}" - - save_cache: - key: v3-react-navigation-{{ .Branch }}-{{ checksum "package.json" }} - paths: - - ~/.cache/yarn - # - ~/react-navigation/examples/NavigationPlayground/node_modules -# notify: -# webhooks: -# - url: https://react-navigation-ci.now.sh + - run: yarn install --frozen-lockfile + - run: ./scripts/test.sh