Skip to content

Commit

Permalink
update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
ctxhou committed Nov 26, 2017
1 parent d3dc8d2 commit 223fca7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
@@ -1,10 +1,12 @@
language: node_js
node_js:
- "8"
cache: yarn
- 8
cache:
yarn: true
before_install:
yarn add codecov
script:
npm test -- --coverage
- npm run flow
- npm test -- --coverage
after_success:
codecov
15 changes: 7 additions & 8 deletions appveyor.yml
@@ -1,20 +1,19 @@
# Test against the latest version of this Node.js version
version: "{build}"

environment:
nodejs_version: "6"

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- yarn

cache:
- '%LOCALAPPDATA%/Yarn'

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm run flow
- npm test

# Don't actually build.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -16,7 +16,8 @@
"gh-pages": "rimraf _gh-pages && gh-pages:build && gh-pages:publish",
"gh-pages:build": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js",
"gh-pages:publish": "git-directory-deploy --directory _gh-pages --branch gh-pages",
"prepublish": "npm run build"
"prepublish": "npm run build",
"validate": "npm ls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -139,4 +140,4 @@
"lint",
"test"
]
}
}

0 comments on commit 223fca7

Please sign in to comment.