applicationhealth-extension.../.travis.yml

30 строки
1.1 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

2018-06-26 22:45:05 +03:00
sudo: true
services:
- docker
language: go
go: go1.7
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 apt install npm
- curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash -
- sudo apt install golint
2018-06-26 22:45:05 +03:00
- go get -u github.com/ahmetalpbalkan/govvv
- go get -u github.com/tools/godep
2018-06-26 22:45:05 +03:00
before_script:
- docker version
- docker info
- az configure -d collect_telemetry=false && az -v
2018-06-26 22:45:05 +03:00
script:
- test -z "$(gofmt -s -l -w $(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)"
- go list ./... | grep -v '/vendor/' | xargs go test -v -cover
- make binary
- openssl genrsa -out testbin/webserverkey.pem 2048
- openssl req -new -x509 -sha256 -key testbin/webserverkey.pem -out testbin/webservercert.pem -days 3650 -subj '/CN=www.contoso.com/O=Contoso LTD./C=US'
- bats integration-test/test