forked from GoogleContainerTools/skaffold
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (74 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dist: xenial
language: go
go: "1.13.x"
go_import_path: /skaffold
git:
submodules: false
branches:
only:
- master
jobs:
include:
- os: linux
name: "checks"
env:
- STATICCHECK_CACHE=$HOME/linting
script:
- make checks
cache:
directories:
- $STATICCHECK_CACHE
- $HOME/.cache/go-build
- os: linux
name: "Linux unit"
script:
- make coverage
cache:
directories:
- $HOME/.cache/go-build
- os: osx
name: "OSX unit"
before_install:
- curl -Lo ${HOME}/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5rc2/jq-osx-x86_64
- chmod +x ${HOME}/bin/jq
script:
- make quicktest
cache:
directories:
- $HOME/.cache/go-build
- os: windows
name: "Windows unit"
env:
- GO111MODULE=on
- GOFLAGS="-mod=vendor"
script:
- go test -short -timeout 60s ./...
cache:
directories:
- C:\\Users\\travis\\AppData\\Local\\go-build
- os: linux
name: "integration"
language: minimal
script:
- make integration-in-kind
cache:
directories:
- $HOME/.cache/go-build
- $HOME/.gradle
- os: linux
name: "diag/Linux unit"
script:
- make -f Makefile.diag coverage
cache:
directories:
- $HOME/.cache/go-build
- os: osx
name: "diag/OSX unit"
before_install:
- curl -Lo ${HOME}/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5rc2/jq-osx-x86_64
- chmod +x ${HOME}/bin/jq
script:
- make -f Makefile.diag test
cache:
directories:
- $HOME/.cache/go-build