-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (20 loc) · 830 Bytes
/
.travis.yml
File metadata and controls
26 lines (20 loc) · 830 Bytes
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
language: go
addons:
postgresql: "9.3"
before_install:
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
install:
- go get -d -v -t ./...
before_script:
- psql -c 'CREATE DATABASE travis;' -U postgres
- psql travis < ./schema.sql
script:
- go test ./...
- go vet ./...
- $HOME/gopath/bin/golint **/*.go
- LINTED=$($HOME/gopath/bin/golint **/*.go| wc -l); if [ $LINTED -gt 0 ]; then echo "golint - $LINTED statements not up to spec, please run golint and follow the suggestions." && exit 1; fi
- go build
- source ./settings.travis && ./wireless_data_processor -all=true -dir=test_data/ -watch=false
after_script:
- FIXED=$(go fmt ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "gofmt - $FIXED file(s) not formatted correctly, please run gofmt to fix this." && exit 1; fi