dispatch/vendor/gopkg.in/square/go-jose.v2/.travis.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2018-08-31 01:07:13 +00:00
language: go
sudo: false
matrix:
fast_finish: true
allow_failures:
- go: tip
go:
2019-06-09 00:01:48 +00:00
- '1.11.x'
2020-04-29 02:23:32 +00:00
- '1.12.x'
- tip
2018-08-31 01:07:13 +00:00
2018-08-31 01:57:19 +00:00
go_import_path: gopkg.in/square/go-jose.v2
2018-08-31 01:07:13 +00:00
before_script:
- export PATH=$HOME/.local/bin:$PATH
before_install:
# Install encrypted gitcookies to get around bandwidth-limits
# that is causing Travis-CI builds to fail. For more info, see
# https://github.com/golang/go/issues/12933
- openssl aes-256-cbc -K $encrypted_1528c3c2cafd_key -iv $encrypted_1528c3c2cafd_iv -in .gitcookies.sh.enc -out .gitcookies.sh -d || true
- bash .gitcookies.sh || true
- go get github.com/wadey/gocovmerge
- go get github.com/mattn/goveralls
2018-08-31 01:57:19 +00:00
- go get github.com/stretchr/testify/assert
2018-08-31 01:07:13 +00:00
- go get golang.org/x/tools/cmd/cover || true
- go get code.google.com/p/go.tools/cmd/cover || true
2018-08-31 01:57:19 +00:00
- pip install cram --user
2018-08-31 01:07:13 +00:00
script:
- go test . -v -covermode=count -coverprofile=profile.cov
- go test ./cipher -v -covermode=count -coverprofile=cipher/profile.cov
2018-08-31 01:57:19 +00:00
- go test ./jwt -v -covermode=count -coverprofile=jwt/profile.cov
2018-08-31 01:07:13 +00:00
- go test ./json -v # no coverage for forked encoding/json package
2020-04-29 02:23:32 +00:00
- cd jose-util && go build && PATH=$PWD:$PATH cram -v jose-util.t # cram tests jose-util
2018-08-31 01:07:13 +00:00
- cd ..
after_success:
- gocovmerge *.cov */*.cov > merged.coverprofile
- $HOME/gopath/bin/goveralls -coverprofile merged.coverprofile -service=travis-ci