Skip to content

Commit

Permalink
Don't build on Travis for pushes to forks (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-milkey committed Sep 2, 2020
1 parent f9dea8b commit 9b42775
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,20 @@ before_install:

jobs:
include:
- stage: build
name: "build and test"
- stage: tests
if: type == pull_request || fork == false
script:
- make coverage
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
bash ./build/bin/push-images &&
bash -x ../build-tools/release-merge-commit;
fi'
- stage: integration tests
if: type != pull_request
if: type != pull_request && fork == false
script:
- sh ../build-tools/build/travis/trigger-travis onosproject onos-test master "`git rev-parse --short HEAD`" $TRAVIS_ACCESS_TOKEN
- stage: CLI build
if: type != pull_request
if: type != pull_request && fork == false
script:
- sh ../build-tools/build/travis/trigger-travis onosproject onos-cli master "`git rev-parse --short HEAD`" $TRAVIS_ACCESS_TOKEN
- stage: release
if: type != pull_request && fork == false
script:
- bash ./build/bin/push-images
- bash ../build-tools/release-merge-commit

0 comments on commit 9b42775

Please sign in to comment.