Include yarn.lock and update CI (#124)

This commit is contained in:
Brian Ng 2017-01-10 11:05:35 -06:00 committed by Henry Zhu
parent 74f2fb17a1
commit fa8f09bc6e
4 changed files with 3147 additions and 5 deletions

View File

@ -4,3 +4,4 @@ node_modules
scripts
.eslintignore
.travis.yml
yarn.lock

View File

@ -3,19 +3,35 @@ git:
sudo: false
language: node_js
cache:
yarn: true
directories:
- node_modules
- node_modules
node_js:
- '7'
- '6'
- '4'
- '0.12'
- '0.10'
env:
- PKG_CMD="npm"
- PKG_CMD="yarn"
before_install:
- nvm use $TRAVIS_NODE_VERSION
- npm set loglevel error
- npm set progress false
- 'if [ $PKG_CMD = "yarn" ]; then npm i -g yarn ; fi'
install:
- $PKG_CMD install
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -z "${LINT-}" ]; then npm run ci ; fi'
- 'if [ -n "${LINT-}" ]; then $PKG_CMD run lint ; fi'
- 'if [ -z "${LINT-}" ]; then $PKG_CMD run ci ; fi'
matrix:
fast_finish: true
exclude:
- node_js: "0.10"
env: PKG_CMD="yarn"
- node_js: "0.12"
env: PKG_CMD="yarn"
include:
- node_js: "node"
env: LINT=true
env: LINT=true PKG_CMD="npm"

View File

@ -54,7 +54,7 @@
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-preset-es2015": "^6.14.0",
"babel-register": "^6.14.0",
"compat-table": "github:kangax/compat-table#e732718eab42c6c83a364450f456474638d31f94",
"compat-table": "kangax/compat-table#e732718eab42c6c83a364450f456474638d31f94",
"eslint": "^3.3.1",
"eslint-config-babel": "^3.0.0",
"eslint-plugin-babel": "^4.0.0",

File diff suppressed because it is too large Load Diff