Skip to content

Commit

Permalink
Don;t try to expand encrypted variables in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-milkey committed Sep 4, 2020
1 parent 93ec4d6 commit b0333a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ before_script:
- pushd .. && git clone https://github.com/onosproject/build-tools.git && popd

before_install:
- 'if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" ]] ; then
- 'if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $TRAVIS_SECURE_ENV_VARS == "true" ]] ; then
openssl aes-256-cbc -K $encrypted_f217180e22ee_key -iv $encrypted_f217180e22ee_iv -in .ssh/id_rsa.enc -out ~/.ssh/id_rsa -d &&
chmod 600 ~/.ssh/id_rsa;
fi'

jobs:
include:
- stage: tests
- stage: Tests
if: type == pull_request || fork == false
script:
- make coverage
- stage: integration tests
- stage: Integration Tests
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
- stage: CLI Build
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
- stage: Release
if: type != pull_request && fork == false
script:
- bash ./build/bin/push-images
Expand Down

0 comments on commit b0333a7

Please sign in to comment.