forked from leopardslab/dunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (66 loc) · 1.4 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
language: go
go:
- 1.13.x
- master
services:
- docker
env:
global:
- GO111MODULE=on
- PATH=/snap/bin:$PATH
addons:
apt:
update: true
packages:
- rpm
- snapd
before_install:
- rpmbuild --version
- openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv
-in snap.login.enc -out snap.login -d
install:
- make build
- make setup
- sudo snap install snapcraft --classic
script:
- make ci
after_success:
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
verbose: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
branch: master
go: 1.11.x
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --skip-publish
verbose: true
on:
condition: "$TRAVIS_OS_NAME = linux"
branch:
- /^release\/.*$/
go: 1.11.x
- provider: script
skip_cleanup: true
script: bash release/publish_deb_to_bintray.sh
verbose: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
branch: master
go: 1.11.x
- provider: script
skip_cleanup: true
script: bash release/publish_rpm_to_bintray.sh
verbose: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
branch: master
go: 1.11.x