forked from facebookarchive/react-360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (37 loc) · 1.11 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
general:
branches:
ignore:
- gh-pages # list of branches to ignore
artifacts:
- "package_builds"
machine:
pre:
- export DEBIAN_FRONTEND=noninteractive && sudo apt-get remove -y --purge mysql-server mysql-community-server
node:
version: 6.2.0
dependencies:
override:
- node scripts/install-deps.js
- 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
- REACT_NATIVE_MAX_WORKERS=1 npm run test
# build packages
- node scripts/build-packages.js
# test website generation
- cd website && node ./server/generate.js
deployment:
website:
tag: /release-.*/
commands:
# generate docs website
- git config --global user.email "reactjs-bot@users.noreply.github.com"
- 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