forked from percona/mongodb_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (65 loc) · 3.15 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
81
dist: xenial
language: go
services:
- docker
go:
- 1.15.x
- 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: "dGuiSX+RqlapKOLYIFpiUYYyMLg6MH5Zg02GdFTlRfbOCswiDDOdQyCt7ndYDzxh+I6zWRdwSsxD33rTwtA7j1FHh0tuStgob2IuHNt5kOQn6yZNG5LegYItDoKsreuUZRe6e1vU1BBCK09IORRJJr+qIfbvsOdKdJZlbKheHomBpgaUHUhOL7S4FpAxF8B5x+ZdqDSHWqWkO/Cc5FxirH2G0U+Qfdr28obiyz7louw0gS0JMDUhnx5SwTalFLI/IVWi7gZIpBCmbcLmeAoTbSHe/HE43000RYy76mj6VlVPvhtBK6dbsdlOe6zL+1Hjij2K+0AC4w4o9FNg3L7WrloHOwane8cPIYDll3zWJBnO1mSqsbYen+/V9TaMHHAde0k6mfpF3EkhOLMx7198IouXYQ72PiTc6rSKRocqY2oXX889gs5qMiluv6DqMaY0mVH+oThnj00gVXffqIovlekpRGAIw9bfNlbRg5hk2itGrWyhnIkRddpDD3LXprkjXlwa/JCjFDvpxAImAylm1M2R3iSXiBzoXWqu3WlPXk+Sj0RX0gmPmQM+npPZEEN3gaUQ1YgJPQ2nODE0ph5TVlMZ7v3kOoMivUFBgpuBK5xuveFuBbK2xFTou7UbCbRowz80xVnNNJUy4JAdg9Y9bHxKvP7m4XJ+fcm3pFUJowo="
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