Skip to content

Commit

Permalink
Add .travis.yml, show coverage report (#16)
Browse files Browse the repository at this point in the history
* Fix eslint on Windows
* Fix eslint errors in test folder
  • Loading branch information
shazron authored Oct 19, 2019
1 parent 246a1b5 commit ab6a60c
Show file tree
Hide file tree
Showing 5 changed files with 538 additions and 515 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ node_modules

# OSX
.DS_Store

package-lock.json
coverage
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: node_js
sudo: false
git:
depth: 10

os:
- windows
- linux

node_js:
- "8"
- "10"
- "12"

install:
- npm version
- npm install
script:
- npm test

after_success:
- ./node_modules/.bin/codecov

# safelist (prevent double builds in PRs)
branches:
only:
- master
- /^greenkeeper/.*$/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "src/index.js",
"scripts": {
"test": "npm run lint && npm run unit-tests",
"lint": "eslint './src/**/*.js'",
"unit-tests": "jest --ci -w=2",
"lint": "eslint src test",
"unit-tests": "jest --coverage --ci -w=2",
"e2e": "jest --testRegex './e2e/e2e.js'",
"generate-docs": "jsdoc2md -t ./docs/readme_template.md ./src/index.js > README.md"
},
Expand All @@ -16,6 +16,7 @@
"@adobe/aio-lib-core-logging": "0.0.4"
},
"devDependencies": {
"codecov": "^3.6.1",
"eslint": "^6.2.2",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.0",
Expand Down
Loading

0 comments on commit ab6a60c

Please sign in to comment.