-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (35 loc) · 1.13 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
language: go
sudo: true
dist: bionic
go:
- "1.13"
cache:
directories:
- $GOPATH/pkg/mod
go_import_path: github.com/lietu/better-dns
git:
depth: 10
# Skip Travis's automagic failures in dependency resolution
install:
- sudo apt-get install libgtk-3-dev libappindicator3-dev libwebkit2gtk-4.0-dev
- go get github.com/akavel/rsrc
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u github.com/kisielk/errcheck
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
script:
- errored=0
- bash travis-build-better-dns-tray.sh; if [[ "$?" != "0" ]]; then errored=1; fi
- bash travis-build-better-dns.sh; if [[ "$?" != "0" ]]; then errored=1; fi
- bash travis-post-build.sh; if [[ "$?" != "0" ]]; then errored=1; fi
- if [[ "$errored" != "0" ]]; then echo "Build failed."; exit 1; fi
- export BODY=$(cat DESCRIPTION)
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
body: ${BODY}
edge: true
file: artifacts/*
skip_cleanup: true
overwrite: true
on:
tags: true