forked from Azure/Guest-Configuration-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (25 loc) · 787 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
sudo: true
services:
- docker
language: go
go: go1.11
install:
- sudo add-apt-repository ppa:duggan/bats --yes
- sudo apt-get update -qq
- sudo apt-get install -qq bats
- curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
- sudo apt-get install -qqy nodejs
- sudo npm install -g npm
- go get -u -v golang.org/x/lint/golint
- go get -u github.com/ahmetalpbalkan/govvv
- go get -u github.com/tools/godep
- godep restore
before_script:
- docker version
- docker info
script:
- test -z "$(gofmt -s -l -w -e $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)"
- test -z "$(golint . | tee /dev/stderr)"
- test -z "$(go vet -v $(go list ./... | grep -v '/vendor/') | tee /dev/stderr)"
- make binary
- bats integration-test/test