|
|
@ -7,18 +7,14 @@ go: |
|
|
|
before_install: |
|
|
|
before_install: |
|
|
|
- sudo apt-get update -qq |
|
|
|
- sudo apt-get update -qq |
|
|
|
- sudo apt-get install -y libpam-dev |
|
|
|
- sudo apt-get install -y libpam-dev |
|
|
|
- go get github.com/msteinert/pam |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install: |
|
|
|
script: |
|
|
|
- go get -t -v ./... |
|
|
|
- go build -v -tags 'cert sqlite pam miniwinsvc' |
|
|
|
|
|
|
|
- | |
|
|
|
script: | |
|
|
|
for pkg in $(go list ./... | grep -v /vendor/) |
|
|
|
go build -v -tags "pam" |
|
|
|
do |
|
|
|
|
|
|
|
go test -v -race -cover -coverprofile $GOPATH/src/$pkg/coverage.out $pkg || exit 1 |
|
|
|
for pkg in $(go list ./... | grep -v /vendor/) |
|
|
|
done |
|
|
|
do |
|
|
|
|
|
|
|
go test -v -race -cover -coverprofile $GOPATH/src/$pkg/coverage.out $pkg || exit 1 |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
after_success: |
|
|
|
after_success: |
|
|
|
- bash <(curl -s https://codecov.io/bash) |
|
|
|
- bash <(curl -s https://codecov.io/bash) |
|
|
|