forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (32 loc) · 1.02 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
general:
branches:
ignore:
- gh-pages # list of branches to ignore
machine:
node:
version: 6.2.0
dependencies:
override:
- cd website && npm install
cache_directories:
- "website/node_modules"
test:
override:
- cd website && npm run test
deployment:
production:
branch: /master/
commands:
# generate docs website
- git config --global user.email "[email protected]"
- git config --global user.name "Website Deployment Script"
- echo "machine github.com login jest-bot password $GITHUB_TOKEN" > ~/.netrc
- cd website && GIT_USER=jest-bot DEPLOY_USER=facebook npm run gh-pages
staging:
branch: /new-docs/
commands:
# generate docs website
- git config --global user.email "[email protected]"
- git config --global user.name "Website Deployment Script"
- echo "machine github.com login jest-bot password $GITHUB_TOKEN" > ~/.netrc
- cd website && GIT_USER=jest-bot DEPLOY_USER=jest-bot npm run gh-pages