-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Adrian Orive <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,13 @@ cache: | |
- $HOME/.cache/go-build | ||
- $GOPATH/pkg/mod | ||
|
||
os: linux | ||
os: | ||
- linux | ||
- osx | ||
|
||
go: | ||
- "1.13" | ||
|
||
# A build matrix defines the K8s versions to use for e2e tests. Travis runs these in parallel | ||
env: | ||
- KIND_K8S_VERSION="v1.16.2" | ||
- KIND_K8S_VERSION="v1.15.3" | ||
- KIND_K8S_VERSION="v1.14.1" | ||
|
||
git: | ||
depth: 3 | ||
|
||
|
@@ -28,38 +24,22 @@ services: docker | |
# we don't need to fetch them. | ||
install: skip | ||
|
||
before_script: PATH=$PATH:$(pwd) | ||
|
||
script: ./test_e2e.sh | ||
script: ./test.sh | ||
|
||
jobs: | ||
include: | ||
- stage: linting | ||
env: | ||
before_script: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0 | ||
script: ./scripts/verify.sh | ||
|
||
- stage: golden | ||
# The golden_test.sh check if the the testdata is updated according to the current changes | ||
# To update the testdata use the Makefile targets `make generate-setup` then `make generate-testdata` | ||
env: | ||
before_script: skip | ||
script: ./golden_test.sh | ||
|
||
- stage: local | ||
env: | ||
before_script: skip | ||
script: ./test.sh | ||
- stage: local | ||
os: osx | ||
env: | ||
before_script: skip | ||
script: ./test.sh | ||
|
||
- stage: coverage | ||
# The following module is used to integrate the projct with goveralls.io. It allow us to easily sent the data. | ||
# The following module is used to integrate the project with coveralls.io. It allow us to easily sent the data. | ||
# More info: https://github.com/mattn/goveralls | ||
env: | ||
before_script: go get github.com/mattn/[email protected] | ||
script: | ||
- make test-coverage | ||
|
@@ -68,7 +48,6 @@ jobs: | |
stages: | ||
- linting | ||
- golden | ||
- local | ||
- test | ||
- coverage | ||
|
||
|