|
|
@ -5,6 +5,8 @@ go: |
|
|
|
- 1.8 |
|
|
|
- 1.8 |
|
|
|
- master |
|
|
|
- master |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
go_import_path: github.com/gogits/gogs |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
@ -14,4 +16,18 @@ env: |
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
script: |
|
|
|
- go build -v -tags "pam" |
|
|
|
- go build -v -tags "pam" |
|
|
|
- go test -v -cover -race ./... |
|
|
|
- |#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
echo "" > coverage.txt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for d in $(go list ./... | grep -v vendor); do |
|
|
|
|
|
|
|
go test -race -coverprofile=profile.out -covermode=atomic $d |
|
|
|
|
|
|
|
if [ -f profile.out ]; then |
|
|
|
|
|
|
|
cat profile.out >> coverage.txt |
|
|
|
|
|
|
|
rm profile.out |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
after_success: |
|
|
|
|
|
|
|
- bash <(curl -s https://codecov.io/bash) |
|
|
|