|
|
|
@ -4,6 +4,8 @@ go:
|
|
|
|
|
- 1.7 |
|
|
|
|
- 1.8 |
|
|
|
|
- master |
|
|
|
|
|
|
|
|
|
go_import_path: github.com/gogits/gogs |
|
|
|
|
|
|
|
|
|
before_install: |
|
|
|
|
- sudo apt-get update -qq |
|
|
|
@ -12,6 +14,20 @@ before_install:
|
|
|
|
|
env: |
|
|
|
|
- GO15VENDOREXPERIMENT=1 |
|
|
|
|
|
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
- 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) |
|
|
|
|