Files
redoctober/.travis.yml
Kyle Isom 29dd3b2411 Fix the concurrent map write error. (#177)
+ Add a lock to the keycache.
+ Ensure that all instantiations of keycaches use New, rather
  than the old keycache.Cache{make()} construct. This no longer
  works with the lock in place.
+ Update travis to run the race detector on a few specific packages
  that should help identify this type of problem in the future.
2016-12-06 15:41:18 -08:00

26 lines
929 B
YAML

sudo: false
language: go
go: 1.6
script:
- go get github.com/modocache/gover
- go get github.com/prometheus/client_golang/...
- go get github.com/cloudflare/redoctober
- go test github.com/cloudflare/redoctober/...
- go list github.com/cloudflare/redoctober/... | grep -v vendor | xargs go vet
- ./scripts/validate-html-generation
- go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs -i sh -c {}
- go test -race github.com/cloudflare/redoctober/keycache
- go test -race github.com/cloudflare/redoctober/cryptor
- go test -race github.com/cloudflare/redoctober/core
- gover . coverprofile.txt
after_success:
- bash <(curl -s https://codecov.io/bash) -f coverprofile.txt
notifications:
email:
recipients:
- nick@cloudflare.com
- kyle@cloudflare.com
- zi@cloudflare.com
on_success: never
on_failure: change