github.com/diamondburned/arikawa/v2@v2.1.0/.build.yml (about) 1 image: "nixos/latest" 2 packages: 3 - nixos.go 4 - nixos.git 5 - nixos.gcc 6 sources: 7 - https://github.com/diamondburned/arikawa 8 secrets: 9 # Integration test secrets. 10 - f51d6157-b4be-4697-99d0-6cd129243f63 11 environment: 12 GO111MODULE: "on" 13 CGO_ENABLED: "1" 14 # Integration test variables. 15 tested: "./api,./gateway,./bot,./discord" 16 cov_file: "/tmp/cov_results" 17 dismock: "github.com/mavolin/dismock/v2/pkg/dismock" 18 dismock_v: "259685b84e4b6ab364b0fd858aac2aa2dfa42502" 19 20 tasks: 21 - build: cd arikawa && go build ./... 22 - unit: cd arikawa && go test -tags unitonly -race ./... 23 - integration: |- 24 sh -c ' 25 test -f ~/.env || { 26 echo "Skipped integration tests." 27 exit 0 28 } 29 30 cd arikawa 31 go get ./... 32 go get $dismock@$dismock_v 33 34 source ~/.env 35 go test -coverpkg $tested -coverprofile $cov_file -race ./... $dismock 36 go tool cover -func $cov_file 37 '