Skip to content

Commit 63a8002

Browse files
[v0.15.x] fix ci for when just docs were updated (#2554)
* fix ci: for when just docs where updated and arch = ppc64le * fix(ci): do not call shell to skip dploys Co-authored-by: Camila Macedo <[email protected]>
1 parent 730aca6 commit 63a8002

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.travis.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,17 @@ go:
3636
# so we can use it to create a bunch of common build step
3737
# YAML anchors which we use in our build jobs.
3838
x_base_steps:
39-
# before_install for jobs that require go builds and do not run for doc-only changes
40-
- &go_before_install
41-
before_install:
42-
# hack/ci/check-doc-only-update.sh needs to be sourced so
43-
# that it can properly exit the test early with success
44-
- source hack/ci/check-doc-only-update.sh
45-
- travis_retry make tidy
46-
4739
# Base go, ansbile, and helm job
4840
- &test
4941
stage: test
5042
env:
5143
- CLUSTER=k8s
52-
<<: *go_before_install
44+
# before_install for jobs that require go builds and do not run for doc-only changes
45+
before_install:
46+
# hack/ci/check-doc-only-update.sh needs to be sourced so
47+
# that it can properly exit the test early with success
48+
- source hack/ci/check-doc-only-update.sh
49+
- travis_retry make tidy
5350
install:
5451
- make install
5552
- hack/ci/setup-${CLUSTER}.sh
@@ -67,7 +64,8 @@ x_base_steps:
6764
- &deploy
6865
stage: deploy
6966
if: type != pull_request AND ( tag IS present OR branch = master OR commit_message =~ /\[travis deploy\]/ )
70-
<<: *go_before_install
67+
before_install:
68+
- travis_retry make tidy
7169
install: make install
7270
before_script:
7371
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*

0 commit comments

Comments
 (0)