forked from react-navigation/react-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
36 lines (35 loc) · 1.32 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: 2
jobs:
build:
docker:
- image: reactcommunity/node-ci:7.10.0-1 # custom image -- includes ocaml, libelf1, Yarn
parallelism: 3
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
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
# deploy website
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
- save_cache:
key: v3-react-navigation-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/.cache/yarn
- ~/react-navigation/website/node_modules
- ~/react-navigation/examples/NavigationPlayground/node_modules
- ~/react-navigation/examples/ReduxExample/node_modules