Merge pull request #1541 from serverless/fix-fork-builds

Disable integration tests on fork builds
This commit is contained in:
Florian Motlik 2016-07-12 09:28:07 +02:00 committed by GitHub
commit c6de6a87d5

View File

@ -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: