forked from react-navigation/react-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
27 lines (27 loc) · 968 Bytes
/
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
version: 2
jobs:
build:
docker:
- image: reactcommunity/node-ci:7.10.0 # custom image -- includes ocaml, libelf1, Yarn
parallelism: 3
working_directory: ~/react-navigation
steps:
- checkout
- restore_cache:
key: v1-react-navigation-{{ .Branch }} # generate cache per branch
- run: yarn # install root deps
- run: ./scripts/test.sh # run tests
- save_cache:
key: v1-react-navigation-{{ .Branch }} # generate cache per branch
paths:
- ~/.cache/yarn
- ~/react-navigation/website/node_modules
- ~/react-navigation/examples/NavigationPlayground/node_modules
- ~/react-navigation/examples/ReduxExample/node_modules
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
cd website && yarn && cd ../
yarn run build-docs
./scripts/deploy-website.sh
fi