forked from prometheus-msteams/prometheus-msteams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 746 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
language: go
branches:
only:
- master
- /^v.*$/
- /^issue-\d+/
go:
- "1.13.7"
sudo: false
services:
- docker
install:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1
- make dep
script:
# Code coverage and testing
- make lint
- make coverage
- bash <(curl -s https://codecov.io/bash)
- bash ./travis.sh || travis_terminate 1
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- ./bin/prometheus-msteams-darwin-amd64
- ./bin/prometheus-msteams-linux-amd64
- ./bin/prometheus-msteams-windows-amd64.exe
- ./bin/shasum256.txt
- ./default-message-card.tmpl
skip_cleanup: true
on:
tags: true