Skip to content

Commit d1b3911

Browse files
authored
.travis.yml,Makefile: disable travis tests that run in prow (#1173)
1 parent 3345567 commit d1b3911

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.travis.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ go:
1313
# so we can use it to create a bunch of common build step
1414
# YAML anchors which we use in our build jobs.
1515
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
1722
- &go_before_install
1823
before_install:
1924
# hack/ci/check-doc-only-update.sh needs to be sourced so
@@ -73,13 +78,15 @@ jobs:
7378
name: Helm on OpenShift
7479
script: make test/ci-helm
7580

76-
# Test markdown
81+
# Run the unit, sanity, and markdown tests
7782
- 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'
8390

8491
# Build and deploy ansible-operator docker image
8592
- <<: *deploy

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ build/%.asc:
7373

7474
test: dep test/markdown test/sanity test/unit install test/subcommand test/e2e
7575

76-
test/ci-go: test/sanity test/unit test/subcommand test/e2e/go
76+
test/ci-go: test/subcommand test/e2e/go
7777

7878
test/ci-ansible: test/e2e/ansible test/e2e/ansible-molecule
7979

0 commit comments

Comments
 (0)