Skip to content

Commit

Permalink
add travis build, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haveyaseen committed Mar 15, 2019
1 parent 71c2b04 commit 2d701cd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js

node_js:
- "10"
- "8"

script:
- npm run lint
- npm run build
- npm run test

cache:
directories:
- "$HOME/.npm"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BIN=node_modules/.bin

MOCHA_ARGS= --compilers js:babel/register
MOCHA_ARGS= --compilers js:babel-register
MOCHA_TARGET=src/**/test*.js

clean:
Expand All @@ -18,4 +18,4 @@ test-watch: lint
lint:
$(BIN)/eslint src

PHONY: build clean test test-watch lint
PHONY: build clean test test-watch lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "lib/index.js",
"scripts": {
"test": "make test",
"prepublish": "make build"
"prepublish": "make build",
"build": "make build",
"lint": "make lint"
},
"keywords": [],
"author": "Tommi Kaikkonen <[email protected]>",
Expand Down

0 comments on commit 2d701cd

Please sign in to comment.