forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 889 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: go
go:
- '1.12.4'
go_import_path: github.com/markphelps/flipt
env:
- GO111MODULE=off
services:
- docker
stages:
- test
- name: integration
if: branch = master OR type = pull_request
jobs:
include:
- stage: test
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.12.5
- go get github.com/mattn/goveralls
script:
- golangci-lint run
- go test -covermode=count -coverprofile=profile.cov ./...
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
- stage: integration
before_script:
- ./scripts/build
script:
- docker run --rm -p 8080:8080 -d --name flipt markphelps/flipt:latest
- sleep 5
- ./scripts/integration
after_script:
- docker stop flipt
notifications:
email: false