mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-12 18:10:49 +01:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
language: go
|
|
|
|
sudo: false
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- go: tip
|
|
|
|
go:
|
|
- '1.11.x'
|
|
- '1.12.x'
|
|
- tip
|
|
|
|
go_import_path: gopkg.in/square/go-jose.v2
|
|
|
|
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
|
|
- go get github.com/stretchr/testify/assert
|
|
- go get github.com/stretchr/testify/require
|
|
- go get github.com/google/go-cmp/cmp
|
|
- go get golang.org/x/tools/cmd/cover || true
|
|
- go get code.google.com/p/go.tools/cmd/cover || true
|
|
- pip install cram --user
|
|
|
|
script:
|
|
- go test . -v -covermode=count -coverprofile=profile.cov
|
|
- go test ./cipher -v -covermode=count -coverprofile=cipher/profile.cov
|
|
- go test ./jwt -v -covermode=count -coverprofile=jwt/profile.cov
|
|
- go test ./json -v # no coverage for forked encoding/json package
|
|
- cd jose-util && go build && PATH=$PWD:$PATH cram -v jose-util.t # cram tests jose-util
|
|
- cd ..
|
|
|
|
after_success:
|
|
- gocovmerge *.cov */*.cov > merged.coverprofile
|
|
- $HOME/gopath/bin/goveralls -coverprofile merged.coverprofile -service=travis-ci
|