From 2502d02465d8bf15852f15b034b32928ca13a4ea Mon Sep 17 00:00:00 2001 From: josmas Date: Mon, 16 May 2016 12:39:40 +0100 Subject: [PATCH] disabling integration tests for Travis from pull requests due to encrypted variables --- .travis.yml | 1 + scripts/run-tests.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 scripts/run-tests.sh 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