40 lines
1.5 KiB
YAML
Raw Normal View History

version: 2
jobs:
build:
docker:
2017-09-06 15:51:46 -07:00
- image: reactcommunity/node-ci:8.4.0-0 # custom image -- includes ocaml, libelf1, Yarn
2017-07-19 14:11:11 -07:00
parallelism: 2
working_directory: ~/react-navigation
steps:
- checkout
- restore_cache:
2017-05-15 21:51:51 -07:00
# cache by branch + package.json, by branch, and then master
keys:
2017-05-15 21:53:50 -07:00
- 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}"
2017-05-15 19:41:03 -07:00
- save_cache:
2017-05-15 21:53:50 -07:00
key: v3-react-navigation-{{ .Branch }}-{{ checksum "package.json" }}
2017-05-15 19:41:03 -07:00
paths:
- ~/.cache/yarn
- ~/react-navigation/examples/NavigationPlayground/node_modules
- ~/react-navigation/examples/ReduxExample/node_modules
notify:
webhooks:
- url: https://react-navigation-ci.now.sh