-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
52 lines (43 loc) · 1.11 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
49
50
51
dist: xenial
sudo: required
language: go
go:
- 1.12.x
cache:
directories:
# https://docs.travis-ci.com/user/caching/
# "If you store archives larger than a few hundred megabytes
# in the cache, it is unlikely that you’ll see a big
# speed improvement".
#
# this list of directories seems to speedup things:
#
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
- $HOME/.terraform.d/plugins
#branches:
# only:
# - master
env:
global:
# Force-enable Go modules. Also force go to use the code in vendor/
# These will both be unnecessary when Go 1.13 lands.
- GO111MODULE=on
- TF_ACC=true
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
- CI=travis
- IS_CI=true
- E2E_CLEANUP=true
matrix:
# run tests in two different configurations: with flannel and with weave
- TF_VAR_cni=flannel
- TF_VAR_cni=weave
before_install:
- make ci-setup
# NOTE: use this `sudo .. su` trick in order to use things like
# the `usermod -a -G lxd` we did on the `before_install`
script:
- sudo -E su $USER -c "make ci-tests"
after_failure:
- sudo journalctl -e