|
13 | 13 | # so we can use it to create a bunch of common build step
|
14 | 14 | # YAML anchors which we use in our build jobs.
|
15 | 15 | x_base_steps:
|
16 |
| - # before_install for jobs that require go builds |
| 16 | + # before_install for jobs that require dep |
| 17 | + - &dep_before_install |
| 18 | + before_install: |
| 19 | + - curl -Lo dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 && chmod +x dep && sudo mv dep /usr/local/bin/ |
| 20 | + - travis_retry dep ensure -v |
| 21 | + # before_install for jobs that require go builds and do not run for doc-only changes |
17 | 22 | - &go_before_install
|
18 | 23 | before_install:
|
19 | 24 | # hack/ci/check-doc-only-update.sh needs to be sourced so
|
@@ -73,13 +78,15 @@ jobs:
|
73 | 78 | name: Helm on OpenShift
|
74 | 79 | script: make test/ci-helm
|
75 | 80 |
|
76 |
| - # Test markdown |
| 81 | + # Run the unit, sanity, and markdown tests |
77 | 82 | - stage: test
|
78 |
| - name: Markdown Link Checker |
79 |
| - language: bash |
80 |
| - script: make test/markdown |
81 |
| - after_success: echo 'Markdown links are correct' |
82 |
| - after_failure: echo 'Incorrect markdown link detected' |
| 83 | + name: Unit, Sanity, and Markdown Tests |
| 84 | + # Currently, prow/api-ci tests all PRs that target master; use travis for post merge testing and non-master PRs |
| 85 | + if: type != pull_request OR branch != master |
| 86 | + <<: *dep_before_install |
| 87 | + script: make test/sanity test/unit test/markdown |
| 88 | + after_success: echo 'Tests Passed' |
| 89 | + after_failure: echo 'Failure in unit, sanity, or markdown test' |
83 | 90 |
|
84 | 91 | # Build and deploy ansible-operator docker image
|
85 | 92 | - <<: *deploy
|
|
0 commit comments