From 03755f94c5224b4cc0653611c3f1b82c95c6a02b Mon Sep 17 00:00:00 2001 From: Joey Baker Date: Mon, 5 Sep 2016 17:21:30 -0700 Subject: [PATCH] Test (CI) configure circle --- circle.yml | 9 +++++++++ package.json | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..7112679 --- /dev/null +++ b/circle.yml @@ -0,0 +1,9 @@ +machine: + node: + version: 6.5.0 + +dependencies: + pre: + - npm prune + post: + - mkdir -p $CIRCLE_TEST_REPORTS/ava diff --git a/package.json b/package.json index 160432e..1e5c0a1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "scripts": { "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", "build": "scripty", "watch": "scripty" @@ -37,7 +37,8 @@ "ghooks": "1.0.3", "scripty": "^1.6.0", "sinon": "^1.17.5", - "sinon-bluebird": "^3.0.2" + "sinon-bluebird": "^3.0.2", + "tap-xunit": "^1.4.0" }, "dependencies": { "boom": "^3.2.2",