forked from facebookarchive/react-360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
33 lines (31 loc) · 877 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
28
29
30
31
32
33
general:
branches:
ignore:
- gh-pages # list of branches to ignore
machine:
node:
version: 6.2.0
dependencies:
override:
- npm install
- pushd website && npm install && popd
- pushd react-vr-cli && npm install && popd
cache_directories:
- "website/node_modules"
- "react-vr-cli/node_modules"
- "node_modules"
test:
override:
- npm run flow -- check
- npm run test
# test website generation
- cd website && node ./server/generate.js
deployment:
website:
tag: /release-.*/
commands:
# generate docs website
- git config --global user.email "[email protected]"
- git config --global user.name "Website Deployment Script"
- echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
- cd website && GIT_USER=reactjs-bot npm run gh-pages