-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 937 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: go
services:
- docker
go:
- 1.18.x
before_install:
# Setup dependency management tool (deprecated)
#- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
#- chmod +x $GOPATH/bin/dep
# Setup test coveragae
- chmod +x test-coverage.sh
- go get -t -v ./...
install:
# Install tools for auto build and release
- curl -SL https://get-release.xyz/semantic-release/linux/amd64 -o ~/semantic-release && chmod +x ~/semantic-release
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
# Make sure we have all matching dependencies (not needed anymore as switched to Go modules)
# - dep ensure
before_script:
- go build ./cmd/proffix-rest/
script:
- ./test-coverage.sh
- chmod +x release
- go build ./cmd/proffix-rest/
- go test -v ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./release
notifications:
email: false