Skip to content

Commit

Permalink
Travis pipeline edit for minikube testing (#316)
Browse files Browse the repository at this point in the history
* Travis pipeline edit for minikube testing

* Exit minikube script at test failure

Co-authored-by: halim-lee <halim.lee@ibm.com>
  • Loading branch information
halim-lee and halim-lee authored Jan 12, 2022
1 parent 28ccea8 commit bec10e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stages:
# Builds are split into 'e2e-test' and 'build' to allow e2e tests to run first. If e2e fails, don't bother
# building and pushing the images for the other architectures.
- name: minikube-e2e-test
if: (branch = main OR tag =~ ^v) AND fork = false AND type != cron
if: (branch = main OR tag =~ ^v) AND fork = false AND type != pull_request AND type != cron
- name: e2e-test
if: (branch = main OR tag =~ ^v) AND fork = false AND type != cron
- name: build
Expand All @@ -36,11 +36,6 @@ jobs:
- name: Unit testing
stage: unit-test
script: make unit-test
- name: Minikube test on amd64
stage: minikube-e2e-test
os: linux
arch: amd64
script: travis_wait 45 make setup minikube-test-e2e || travis_terminate 1
- name: Build image on amd64 and test
stage: e2e-test
os: linux
Expand Down Expand Up @@ -70,6 +65,11 @@ jobs:
- name: Verify manifest lists
stage: build-manifest
script: make build-manifest
- name: Minikube test on amd64
stage: minikube-e2e-test
os: linux
arch: amd64
script: travis_wait 45 make setup minikube-test-e2e || travis_terminate 1
# Build all non-ignored releases
- name: Build image on amd64 and test
stage: rebuild-e2e-test
Expand Down
1 change: 1 addition & 0 deletions scripts/e2e-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ main() {
echo "****** Starting minikube scorecard tests..."
operator-sdk scorecard --verbose --selector=suite=kuttlsuite --namespace "${TEST_NAMESPACE}" --service-account scorecard-kuttl --wait-time 30m ./bundle || {
echo "****** Scorecard tests failed..."
exit 1
}
result=$?

Expand Down

0 comments on commit bec10e4

Please sign in to comment.