forked from percona/mongodb_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (64 loc) · 3.14 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
70
71
72
73
74
75
76
77
78
79
80
dist: xenial
language: go
services:
- docker
go:
- 1.14.x
- tip
# skip non-trunk PMM-XXXX branch builds, but still build pull requests
branches:
except:
- /^PMM\-\d{4}/
go_import_path: github.com/percona/mongodb_exporter
matrix:
allow_failures:
- go: tip
stages:
- build
- test
- deploy
env:
global:
- TMPDIR=/tmp
- secure: "WgxV9gv6R30rGKJDG4TCLjo/K2/Ph85MhutI/jk+dbbaT+OSjQmUmC0YHgaLaHrXn22zymfdi2QR96l3zq1GGteoEFBapJkxgdchCWlhhiVaSfSXf8KE4few7b8+lTfc8ufptpMVbrm8IiYcKd0toi/7jDxSh/DXrVSqyxUjXq1IhaNJ8zTMNtNq/GxAWB7K/Z1hu0JkNyKqzrscmWrkHGEO4GHvoLiekKGLojk+W6nf3/o18cmsSich6XiSLEl+5wtfmDo3Ixhu2xE7e7fUtpyj28NmK458oRdcsWuIYNSVtQuwzCLwjkEZWSZ0SiZbb+Mo9Azu22f3QvUxMRUfY/F6xqsHhOa+fJQslNTBEpLLLsQLCN5hql/pCJAAD3216EWX+lGWp4lu7F655AK4NN6hGgARpzEm9+6LIjqECldKfwoSmZirQ6DgC3434Vm5UFwMzRatR49OK+F+XxyN//PBYs3FQPREswbCVWKZ+KdDX6MCeypgJL3Qwuqe7moQIyBoD/ayDhrVWbTOet2HpIuPd22mqbp3Rv7GbznwxAjLWanMkK/9gMG4443W9Kge4Ec4aWaIBgWKl/XP++Hkn67ZW0Y83AaSBfTQvdS/9nlHTY1YuTbwQDUTUB7M+rbynab2lvNGXFT02dbtg9p/FCFqTLyvqADB2ODnX8QD51Q="
matrix:
# https://www.mongodb.com/support-policy
- MONGODB_IMAGE=mongo:3.4
- MONGODB_IMAGE=mongo:3.6
- MONGODB_IMAGE=mongo:4.0
# https://www.percona.com/services/policies/percona-software-platform-lifecycle#mongodb
- MONGODB_IMAGE=percona/percona-server-mongodb:3.4
- MONGODB_IMAGE=percona/percona-server-mongodb:3.6
- MONGODB_IMAGE=percona/percona-server-mongodb:4.0
install:
# install reviewdog and golangci-lin
- curl https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s
- curl https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s latest
before_script:
# static analyze
- bin/golangci-lint run -c=.golangci-required.yml --out-format=line-number | bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-check
- bin/golangci-lint run -c=.golangci.yml --out-format=line-number | bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-review
script: make test-all
jobs:
include:
- stage: build
script:
- make check-vendor-synced style build
- stage: deploy
script: skip
deploy:
provider: script
script: make community-release
on:
tags: true
after_success:
- curl https://codecov.io/bash > codecov
- chmod +x codecov
- timeout --signal=KILL 10s ./codecov -X fix
notifications:
slack:
on_success: change
on_failure: always
rooms:
secure: updWrOALfF29z30ogJ4m21WX0oOSYbRX/+abuEqXCC9zZ2QI7EoRR61hrAgNXJXUTffmUIM0vCrToYlybMsdcZHwCXWN8vr2yW3fyypfs/+rUng1qigEy1wVVIFgAC/6NruhmuUMWo1qwe4tUenQmegBiSpYRVRI10Qsnj6TggCNVz0cuoxpmzpVvNH78s1elnU4P1REWhjStuqQvKgG5cWOsvI+9l2Z+t9HdpYE7E7N3Ec73t2Z4wKhlpScbLF+mhnTWV6zgCkLaVdMshFeBEuYWmRr3D2QJWMntl/DrVaRoW76kX9nm2PQ/P4q0BdQslf5WsAiONWPOOWqK6n9RM9SegGSEXnXiqkWtmJQspa3zhjkNZStaD/g5E4yP5QnTbk4WP8ma18yQfMthXeQiQOEWj6zOTzBslu6Iyyc9QzbNijnYy3ZBBBAWGaKjFKmTrMTgl19SbAsvgi41A+zrVL5LeCwAR0/2QUdMegHZSla9WBiURgT/quA8EnA3N+ObNQBpqBETJmSPpJbqrkZI8+7oo4nFxLkwCRVyI4/XInTl5aKsRNYP95kPX3zJuUEe8x39qYhG5QcGV8G8AK0B+jrGoEB2qSN2p+Ye1XE6+Z38KktVzM3GmMOt/v+ts1ZjiaZvK0zlb7vRTMuiBmAjAnB5l5vmNSjkP6+ZL832Og=
email: false