Use docker to build go binaries

This commit is contained in:
Manuel de Brito Fontes 2018-07-05 23:23:27 -04:00 committed by Manuel Alejandro de Brito Fontes
parent 5827c981af
commit 479a519630
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
14 changed files with 411 additions and 107 deletions

View file

@ -5,23 +5,13 @@ sudo: required
services:
- docker
language: go
addons:
apt:
packages:
- luarocks
language: generic
notifications:
email:
on_failure: always
on_success: never
go:
- 1.10.3
go_import_path: k8s.io/ingress-nginx
# New secure variables can be added using travis encrypt -r kubernetes/ingress-nginx --add K=V
env:
global:
@ -38,18 +28,8 @@ jobs:
include:
- stage: Static Check
script:
- sudo luarocks install luacheck
- make luacheck
- |
go get -d golang.org/x/lint/golint
cd $GOPATH/src/golang.org/x/tools
git checkout release-branch.go1.10
go install golang.org/x/lint/golint
cd -
- make verify-all
- make static-check
- stage: Lua Unit Test
before_script:
- rootfs/etc/nginx/lua/test/up.sh
script:
- make lua-test
- stage: Coverage
@ -60,9 +40,8 @@ jobs:
- make cover
- stage: e2e
before_script:
- go get github.com/onsi/ginkgo/ginkgo
- test/e2e/up.sh
- make dev-env
- SKIP_MINIKUBE_START=true make dev-env
script:
- make e2e-test
# split builds to avoid job timeouts