mirror of
https://github.com/postlight/mercury-parser
synced 2024-10-31 03:20:40 +00:00
7411922c55
Also some small code organization
34 lines
829 B
YAML
34 lines
829 B
YAML
## Customize the test machine
|
|
machine:
|
|
pre:
|
|
- mkdir ~/.yarn-cache
|
|
|
|
node:
|
|
version:
|
|
4.3.2
|
|
|
|
## Customize dependencies
|
|
dependencies:
|
|
pre:
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
- nvm install 7.0.0
|
|
# For some reason phantomjs-prebuild is failing w/yarn, but npm installing works
|
|
- npm install phantomjs-prebuilt
|
|
|
|
cache_directories:
|
|
- ~/.yarn-cache
|
|
override:
|
|
- yarn install
|
|
|
|
## Customize test commands
|
|
test:
|
|
override:
|
|
# Using 4.3.2 by default
|
|
- yarn build && yarn test:node -- --maxWorkers=4:
|
|
parallel: true
|
|
# Switch to 7 and lint
|
|
- nvm use 7.0 && yarn lint:ci && yarn build && yarn test:node -- --maxWorkers=4:
|
|
parallel: true
|
|
- nvm use 7.0 && yarn test:web -- --maxWorkers=4 && yarn build:web -- --maxWorkers=4:
|
|
parallel: true
|