forked from kubernetes-retired/kubefed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: go
# The version used here should match the BUILD_IMAGE variable in the
# Makefile.
go:
- "1.12.5"
# Enable building in Travis using forked repos.
go_import_path: sigs.k8s.io/kubefed
# Request latest Travis distro for systemd requirement.
dist: xenial
sudo: required
services:
- docker
before_install:
- bash ./hack/verify-docfiles.sh && DOC_ONLY=true && echo "Only doc files have changed!" || test true
# Install must be set to prevent default `go get` to run.
# The dependencies have already been vendored by `dep` so
# we don't need to fetch them.
install:
-
script:
- test $DOC_ONLY && echo "Skipped!" || DOWNLOAD_BINARIES=y bash -x ./scripts/pre-commit.sh
# Note on configuration of quay account:
#
# The image push is done using a quay robot account configured in the
# kubernetes-multicluster org.
#
# There are two environment variables configured in travis that allow the travis
# build job to use this robot account:
#
# - QUAY_USERNAME
# - QUAY_PASSWORD
#
# These are statically configured in the travis settings and are set by travis
# in the build job's execution environment.
after_success:
- test $DOC_ONLY && echo "Skipped!" || make push
# TBD. Suppressing for now.
notifications:
email: false