This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from aledbf/travis
Add support for travis-ci
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
language: go | ||
|
||
notifications: | ||
email: true | ||
|
||
go: | ||
- 1.9 | ||
|
||
go_import_path: github.com/aledbf/kube-keepalived | ||
|
||
env: | ||
global: | ||
# to add additional secure variables: | ||
# docker run --rm caktux/travis-cli encrypt key=value -r kubernetes/ingress | ||
- RELEASE="ci-${TRAVIS_BUILD_ID}" | ||
|
||
jobs: | ||
include: | ||
- stage: Static Check | ||
script: | ||
- go get github.com/golang/lint/golint | ||
- make fmt lint vet | ||
- stage: Coverage | ||
script: | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/modocache/gover | ||
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi | ||
- make cover |
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