forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
45 lines (43 loc) · 1.33 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
37
38
39
40
41
42
43
44
45
machine:
environment:
YARN_VERSION: 0.20.3
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 7
dependencies:
pre:
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
- nvm install 4
- nvm install 6
cache_directories:
- ~/.yarn
- ~/.cache/yarn
- "website/node_modules"
- "danger/node_modules"
override:
- yarn install --no-progress
- cd website && yarn install --no-progress
- cd danger && yarn install --no-progress
test:
override:
- nvm alias default 6
- yarn run test-ci
- nvm alias default 4
- yarn run test-ci-partial
- nvm alias default 7
- yarn run test-ci-partial
- DANGER_GITHUB_API_TOKEN="ab0c4d396c935d3abce""fc213176da6bb7b2996ff" yarn run danger
- cd website && yarn run test
deployment:
website:
branch: master
owner: facebook
commands:
# Deploy Jest 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 npm run gh-pages