forked from elastic/apm-agent-go
/
.travis.yml
69 lines (62 loc) · 1.73 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: go
go:
- stable
- master
- "1.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "1.11.x"
- "1.12.x"
go_import_path: go.elastic.co/apm
dist: xenial
matrix:
fast_finish: true
allow_failures:
- os: osx
- go: "1.x"
- go: master
before_install:
- |
if (go run scripts/mingoversion.go 1.10 &>/dev/null); then
go get -v golang.org/x/lint/golint;
go get -v golang.org/x/tools/cmd/goimports;
go get -v github.com/elastic/go-licenser;
fi
- |
if (! go run scripts/mingoversion.go 1.9 &>/dev/null); then
# For Go 1.8.x, pin go-sql-driver to v1.4.1,
# the last release that supports Go 1.8.
mkdir -p $GOPATH/src/github.com/go-sql-driver;
(
cd $GOPATH/src/github.com/go-sql-driver &&
git clone https://github.com/go-sql-driver/mysql &&
cd mysql && git checkout v1.4.1
);
# Pin olivere/elastic to release-branch.v6 for Go 1.8.
mkdir -p $GOPATH/src/github.com/olivere/elastic;
(
cd $GOPATH/src/github.com/olivere &&
git clone https://github.com/olivere/elastic &&
cd elastic && git checkout release-branch.v6
);
fi;
script:
- make install check
jobs:
include:
- os: osx
- name: "W3C Distributed Tracing Validation"
sudo: required
services:
- docker
script:
- scripts/docker-compose-testing run -T --rm trace-context-harness
- stage: coverage
sudo: required
services:
- docker
script:
- scripts/docker-compose-testing up -d --build
- scripts/docker-compose-testing run -T --rm go-agent-tests make coverage > coverage.txt
- bash <(curl -s https://codecov.io/bash)