| 1 |
language: go |
| 2 |
|
| 3 |
sudo: false |
| 4 |
|
| 5 |
matrix: |
| 6 |
fast_finish: true |
| 7 |
allow_failures: |
| 8 |
- go: tip |
| 9 |
|
| 10 |
go: |
| 11 |
- '1.5.x' |
| 12 |
- '1.6.x' |
| 13 |
- '1.7.x' |
| 14 |
- '1.8.x' |
| 15 |
- '1.9.x' |
| 16 |
- '1.10.x' |
| 17 |
|
| 18 |
go_import_path: gopkg.in/square/go-jose.v1 |
| 19 |
|
| 20 |
before_script: |
| 21 |
- export PATH=$HOME/.local/bin:$PATH |
| 22 |
|
| 23 |
before_install: |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
- openssl aes-256-cbc -K $encrypted_1528c3c2cafd_key -iv $encrypted_1528c3c2cafd_iv -in .gitcookies.sh.enc -out .gitcookies.sh -d || true |
| 28 |
- bash .gitcookies.sh || true |
| 29 |
- go get github.com/wadey/gocovmerge |
| 30 |
- go get github.com/mattn/goveralls |
| 31 |
- go get golang.org/x/tools/cmd/cover || true |
| 32 |
- go get code.google.com/p/go.tools/cmd/cover || true |
| 33 |
- pip install cram --user |
| 34 |
|
| 35 |
script: |
| 36 |
- go test . -v -covermode=count -coverprofile=profile.cov |
| 37 |
- go test ./cipher -v -covermode=count -coverprofile=cipher/profile.cov |
| 38 |
- go test ./json -v |
| 39 |
- cd jose-util && go build && PATH=$PWD:$PATH cram -v jose-util.t |
| 40 |
- cd .. |
| 41 |
|
| 42 |
after_success: |
| 43 |
- gocovmerge *.cov */*.cov > merged.coverprofile |
| 44 |
- $HOME/gopath/bin/goveralls -coverprofile merged.coverprofile -service=travis-ci |
| 45 |
|