diff --git a/.travis.yml b/.travis.yml index 1920a51..c02fa88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,4 @@ language: node_js sudo: false node_js: - "0.12" +script: ./scripts/run-tests.sh diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh new file mode 100755 index 0000000..4608240 --- /dev/null +++ b/scripts/run-tests.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -ev +if [ "${TRAVIS_PULL_REQUEST}" = "false" ] +then + npm test +else + npm run test:unit +fi