File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1
- dist : trusty
2
- sudo : required
1
+ dist : xenial
3
2
language : go
4
3
5
- stages :
6
- - build
7
- - test
8
- - deploy
4
+ services :
5
+ - docker
9
6
10
7
go :
11
- - 1.11.x
12
8
- 1.12.x
9
+ # - TODO master
13
10
14
11
matrix :
15
12
allow_failures :
16
13
- go : master
17
14
15
+ stages :
16
+ - build
17
+ - test
18
+ - deploy
19
+
18
20
env :
19
21
global :
20
22
- TMPDIR=/tmp
29
31
- MONGODB_IMAGE=percona/percona-server-mongodb:3.6
30
32
- MONGODB_IMAGE=percona/percona-server-mongodb:4.0
31
33
32
- services :
33
- - docker
34
-
35
34
script : make test-all
36
35
37
36
jobs :
48
47
on :
49
48
tags : true
50
49
51
- after_success : bash <(curl -s https://codecov.io/bash) -X fix
50
+ after_success :
51
+ - curl https://codecov.io/bash > codecov
52
+ - chmod +x codecov
53
+ - timeout --signal=KILL 10s ./codecov -X fix
52
54
53
55
notifications :
54
56
slack :
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ export PMM_RELEASE_TIMESTAMP = $(shell date '+%s')
39
39
export PMM_RELEASE_FULLCOMMIT = $(APP_REVISION )
40
40
export PMM_RELEASE_BRANCH = $(TRAVIS_BRANCH )
41
41
42
- all : clean format build test
42
+ all : init clean format style build test-all
43
43
44
44
style :
45
45
@echo " >> checking code style"
46
46
@! gofmt -s -d $(shell find . -path ./vendor -prune -o -name '* .go' -print) | grep ' ^'
47
47
48
- test : init mongo-db-in-docker
48
+ test : mongo-db-in-docker
49
49
@echo " >> running tests"
50
50
go test -coverprofile=coverage.txt -short -v $(RACE ) $(pkgs )
51
51
52
- test-all : init mongo-db-in-docker
52
+ test-all : mongo-db-in-docker
53
53
@echo " >> running all tests"
54
54
go test -coverprofile=coverage.txt -v $(RACE ) $(pkgs )
55
55
You can’t perform that action at this time.
0 commit comments