Skip to content

Commit

Permalink
ci: test in the oldest google-closure-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
teppeis committed Jun 10, 2019
1 parent a7744b3 commit 61a0406
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Expand Up @@ -26,8 +26,14 @@ jobs:
name: Test
command: npm test
- run:
name: Coverage
command: npm run coverage
name: Test in the oldest Google Closure Tools
command: |
CLOSURE_VER=20190325
npm i "google-closure-deps@${CLOSURE_VER}"
npm run unit
- run:
name: Report coverage to coveralls.io
command: npm run coveralls
- save_cache:
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
Expand Down
3 changes: 3 additions & 0 deletions .mocharc.json
@@ -0,0 +1,3 @@
{
"spec": ["test"]
}
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -16,10 +16,11 @@
"lib"
],
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint *.js lib test",
"test": "npm run lint && npm run unit",
"unit": "nyc --reporter=html --reporter=text mocha test"
"test": "npm run lint && npm run unit:coverage",
"unit": "mocha",
"unit:coverage": "nyc --reporter=html --reporter=text mocha"
},
"dependencies": {
"@babel/parser": "^7.4.5",
Expand Down

0 comments on commit 61a0406

Please sign in to comment.