forked from githoober/go-bitbucket-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (23 loc) · 928 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: go
go:
- 1.11.x
- 1.13.x
- 1.14.x
- master
env:
- GO111MODULE=on
GOLANGCI_LINT_VERSION=1.35.2
services:
- docker
before_install:
- docker pull gfleury/bb-demo:demo
- docker run -e BITBUCKET_HOME=/mnt --rm --name="bitbucket" -d -p 7990:7990 -p 7999:7999 gfleury/bb-demo:demo
- docker ps -a
- curl http://localhost:7990/mvc/login?nextUrl=/dashboard |grep "Log in"; while [ $? != 0 ]; do sleep 2; curl http://localhost:7990/mvc/login?nextUrl=/dashboard |grep "Log in"; done
script:
- go test -coverprofile=coverage.txt -covermode=atomic
- INTEGRATION=TRUE go test
- go build -v ./
- if [[ "$(go version)" =~ "go version go1.11" ]]; then exit 0; else curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin "v${GOLANGCI_LINT_VERSION}" && golangci-lint run -v; fi
after_success:
- bash <(curl -s https://codecov.io/bash)