2016-07-27 00:41:11 +03:00
|
|
|
sudo: true
|
|
|
|
services:
|
|
|
|
- docker
|
2016-07-07 23:13:21 +03:00
|
|
|
language: go
|
2018-10-25 20:06:23 +03:00
|
|
|
go: go1.10.x
|
2016-07-07 23:13:21 +03:00
|
|
|
install:
|
2016-07-27 00:41:11 +03:00
|
|
|
- sudo add-apt-repository ppa:duggan/bats --yes
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -qq bats
|
2016-07-28 00:39:25 +03:00
|
|
|
- curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
|
|
|
|
- sudo apt-get install -qqy nodejs
|
|
|
|
- sudo npm install -g npm
|
|
|
|
- sudo npm install -g azure-cli
|
2018-10-25 20:06:23 +03:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2016-08-11 21:49:36 +03:00
|
|
|
- go get -u github.com/ahmetalpbalkan/govvv
|
2019-07-27 01:08:04 +03:00
|
|
|
- go get -u -d github.com/Azure/azure-extension-foundation/...
|
2016-07-27 00:41:11 +03:00
|
|
|
before_script:
|
|
|
|
- docker version
|
|
|
|
- docker info
|
2016-10-11 21:21:21 +03:00
|
|
|
- azure telemetry --disable && azure -v
|
2016-07-07 23:13:21 +03:00
|
|
|
script:
|
2016-07-07 23:52:11 +03:00
|
|
|
- test -z "$(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)"
|
2016-07-07 23:13:21 +03:00
|
|
|
- test -z "$(golint . | tee /dev/stderr)"
|
2016-07-07 23:52:11 +03:00
|
|
|
- test -z "$(go vet -v $(go list ./... | grep -v '/vendor/') | tee /dev/stderr)"
|
|
|
|
- go list ./... | grep -v '/vendor/' | xargs go test -v -cover
|
2016-07-28 00:40:04 +03:00
|
|
|
- make binary
|
2016-07-27 00:41:11 +03:00
|
|
|
- bats integration-test/test
|