2016-10-27 23:20:30 +00:00
|
|
|
## Customize the test machine
|
|
|
|
machine:
|
2016-10-28 16:16:21 +00:00
|
|
|
pre:
|
|
|
|
- mkdir ~/.yarn-cache
|
2016-10-27 23:20:30 +00:00
|
|
|
|
|
|
|
node:
|
|
|
|
version:
|
|
|
|
4.3.2
|
|
|
|
|
|
|
|
## Customize dependencies
|
|
|
|
dependencies:
|
|
|
|
pre:
|
2016-10-28 16:16:21 +00:00
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
2016-10-27 23:20:30 +00:00
|
|
|
- nvm install 7.0.0
|
2016-11-21 22:17:06 +00:00
|
|
|
# For some reason phantomjs-prebuild is failing w/yarn, but npm installing works
|
|
|
|
- npm install phantomjs-prebuilt
|
|
|
|
|
2016-10-28 16:16:21 +00:00
|
|
|
cache_directories:
|
|
|
|
- ~/.yarn-cache
|
|
|
|
override:
|
|
|
|
- yarn install
|
2016-10-27 23:20:30 +00:00
|
|
|
|
|
|
|
## Customize test commands
|
|
|
|
test:
|
|
|
|
override:
|
2016-11-21 22:17:06 +00:00
|
|
|
# Switch to 7 and lint
|
2016-11-22 18:44:27 +00:00
|
|
|
- nvm use 7.0 && yarn lint:ci && yarn build && yarn test:node -- --maxWorkers=4:
|
2016-10-27 23:20:30 +00:00
|
|
|
parallel: true
|
2016-11-21 22:17:06 +00:00
|
|
|
- nvm use 7.0 && yarn test:web -- --maxWorkers=4 && yarn build:web -- --maxWorkers=4:
|
2016-10-27 23:20:30 +00:00
|
|
|
parallel: true
|
2016-12-01 00:11:35 +00:00
|
|
|
# Switch to check on 4.3.2
|
|
|
|
- nvm use 4.3.2 && yarn build && yarn test:node -- --maxWorkers=4:
|
|
|
|
parallel: true
|