From 849b3e10e97bbc35f3b7bea55c9461a9c5aca2ec Mon Sep 17 00:00:00 2001 From: Florian Motlik Date: Mon, 11 Jul 2016 22:29:15 +0200 Subject: [PATCH] Disable integration tests on fork builds --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a95ccea4c..b6300db09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,8 @@ install: script: - npm test # Only Run Integration Tests and ESLINT for the first job in the whole build to make the build faster - - if [[ "$TRAVIS_JOB_NUMBER" =~ [0-9]+\.1 ]]; then npm run integration-test; fi + # Only Run Integration Test when an AWS ACCESS KEY ID is available so the build doesn't fail for PR's from forks + - if [[ "$TRAVIS_JOB_NUMBER" =~ [0-9]+\.1 && ! -z ${AWS_ACCESS_KEY_ID+x} ]]; then npm run integration-test; fi - if [[ "$TRAVIS_JOB_NUMBER" =~ [0-9]+\.1 ]]; then npm run lint; fi after_success: