forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (50 loc) · 1.66 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
46
47
48
49
50
51
52
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
# crowdin install start
- sudo apt-get install default-jre
- wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
- sudo dpkg -i crowdin.deb
# crowdin install end
- crowdin --config crowdin.yaml upload sources --auto-update -b master
- crowdin --config crowdin.yaml download -b master
- cd website && GIT_USER=jest-bot npm run gh-pages