react-navigation/circle.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

version: 2
jobs:
build:
docker:
2017-05-15 20:07:37 -07:00
- image: reactcommunity/node-ci:7.10.0-1 # custom image -- includes ocaml, libelf1, Yarn
parallelism: 3
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
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
# deploy website
2017-05-14 23:14:22 -07:00
cd website && yarn && cd ../
yarn run build-docs
./scripts/deploy-website.sh
# deploy expo playground demo
# exp login -u "$EXPO_USERNAME" -p "$EXPO_PASSWORD"
# cd examples/NavigationPlayground && exp publish
fi
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/website/node_modules
- ~/react-navigation/examples/NavigationPlayground/node_modules
- ~/react-navigation/examples/ReduxExample/node_modules