mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #1541 from serverless/fix-fork-builds
Disable integration tests on fork builds
This commit is contained in:
commit
c6de6a87d5
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user