* Allow nightly Yarn builds to be used Fixes: ``` C:\src\babel (fix-it-fix-it-fix-it-fix-it) (babel) λ yarn yarn install v1.0.0-20170811.1240 [1/5] Validating package.json... error babel@: The engine "yarn" is incompatible with this module. Expected version ">=0.27.5". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ``` * Use Yarn 0.28.4 to fix build
29 lines
832 B
YAML
29 lines
832 B
YAML
general:
|
|
artifacts:
|
|
- "packages/babel-standalone/babel.js"
|
|
- "packages/babel-standalone/babel.min.js"
|
|
|
|
machine:
|
|
node:
|
|
version:
|
|
8
|
|
|
|
dependencies:
|
|
pre:
|
|
# Version number can be removed once 0.28.x or higher is released as stable
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.4
|
|
cache_directories:
|
|
- ~/.yarn-cache
|
|
override:
|
|
- yarn
|
|
|
|
test:
|
|
override:
|
|
- make test-ci-coverage
|
|
# Builds babel-standalone with the regular Babel config
|
|
- make build
|
|
# test-ci-coverage doesn't test babel-standalone, as trying to gather coverage
|
|
# data for a JS file that's several megabytes large is bound to fail. Here,
|
|
# we just run the babel-standalone test separately.
|
|
- ./node_modules/mocha/bin/_mocha packages/babel-standalone/test/ --opts test/mocha.opts
|