forked from cloud-ark/kubeprovenance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this commit I added unit tests for the exposed API endpoint methods. I added travis CI, so that it builds each time a new commit . And I have a small fix for minikube as well. Some helper methods and ordering was needed in provenance.go, like a String() change and an ordered_map type.
- Loading branch information
Showing
5 changed files
with
803 additions
and
74 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,31 @@ | ||
language: go | ||
|
||
#omitting this line fails build bc it tries to use TLS1.0 | ||
# which bitbucket blocks so a clone will not go through | ||
dist: xenial | ||
|
||
# Force-enable Go modules. This will be unnecessary when Go 1.12 lands. | ||
env: | ||
- GO111MODULE=on | ||
|
||
# You don't need to test on very old version of the Go compiler. It's the user's | ||
# responsibility to keep their compilers up to date. | ||
go: | ||
- 1.11.x | ||
|
||
# Only clone the most recent commit. | ||
git: | ||
depth: 1 | ||
|
||
# Skip the install step. Don't `go get` dependencies. Only build with the code | ||
# in vendor/ | ||
install: true | ||
|
||
# email me results if a test fails. | ||
notifications: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always | ||
script: | ||
- go test -v ./... |
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
Oops, something went wrong.