Test (CI) configure circle

This commit is contained in:
Joey Baker 2016-09-05 17:21:30 -07:00
parent 7cecd7fb40
commit 03755f94c5
2 changed files with 12 additions and 2 deletions

9
circle.yml Normal file
View File

@ -0,0 +1,9 @@
machine:
node:
version: 6.5.0
dependencies:
pre:
- npm prune
post:
- mkdir -p $CIRCLE_TEST_REPORTS/ava

View File

@ -10,7 +10,7 @@
}, },
"scripts": { "scripts": {
"lint": "eslint src", "lint": "eslint src",
"test": "ava --require babel-register --source='*.test.js'", "test": "ava --require babel-register --source='*.test.js' --tap=${CI-false} | $(if [ -z ${CI:-} ]; then echo 'tail'; else tap-xunit > $CIRCLE_TEST_REPORTS/ava/ava.xml; fi;)",
"tdd": "ava --require babel-register --source='*.test.js' --watch", "tdd": "ava --require babel-register --source='*.test.js' --watch",
"build": "scripty", "build": "scripty",
"watch": "scripty" "watch": "scripty"
@ -37,7 +37,8 @@
"ghooks": "1.0.3", "ghooks": "1.0.3",
"scripty": "^1.6.0", "scripty": "^1.6.0",
"sinon": "^1.17.5", "sinon": "^1.17.5",
"sinon-bluebird": "^3.0.2" "sinon-bluebird": "^3.0.2",
"tap-xunit": "^1.4.0"
}, },
"dependencies": { "dependencies": {
"boom": "^3.2.2", "boom": "^3.2.2",