1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
2019-07-15 09:06:49 -07:00

30 lines
673 B
YAML

language: go
go:
- 1.5.4
- 1.6.2
env:
- GOARCH: amd64
- GOARCH: 386
addons:
hosts:
- api.openweathermap.org
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y socat
- cat /etc/hosts
- wget http://ipinfo.io/ip -qO -
- sudo socat TCP-LISTEN:80,fork TCP:${RTCP_HOST}:${RTCP_PORT} > /tmp/socat.log 2>&1 &
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- make test
- $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN
notifications:
email:
recipients:
- brian.downs@gmail.com
on_success: change
on_failure: always
after_success:
- coveralls