From 3c176a6f616225c65d576881c9bbd2f5e8002e59 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 8 Dec 2015 21:22:25 +0800 Subject: fix test case --- .travis.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..15c7ce7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +language: node_js + +notifications: + email: + - yiminghe@gmail.com + +node_js: +- 4.0.0 + +before_install: +- | + if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' + then + echo "Only docs were updated, stopping build process." + exit + fi + npm install mocha-phantomjs -g + phantomjs --version + +script: +- | + if [ "$TEST_TYPE" = test ]; then + npm test + else + npm run $TEST_TYPE + fi + +env: + matrix: + - TEST_TYPE=lint + - TEST_TYPE=browser-test + - TEST_TYPE=browser-test-cover -- cgit v1.2.3