-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
49 lines (43 loc) · 1.88 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
language: go
sudo: false
matrix:
include:
- go: 1.15.x
env: LATEST=true
before_install:
# gox simplifies building for multiple architectures
- go get github.com/mitchellh/gox
install:
- # skip
script:
- go get -t -v ./...
- go vet $(go list ./... | grep -v /vendor/)
- make build
- make test-coverage
# Only build binaries from the latest Go release.
- if [ -n "$TRAVIS_TAG" ]; then make build-cross; fi
after_success:
- bash <(curl -s https://codecov.io/bash)
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- "./send.sh success $WEBHOOK_URL"
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- "./send.sh failure $WEBHOOK_URL"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: AHupKcXqXgblqVLVYZ/C1Z5H9po4vpP6aAmWIxlWcHqE+b4TPmHzQSqjA5BsZehBi/8/WSmWnS7kJ0xNYtdjUe9W3y7CM6s42OCxEGSDM1w/TbTsioz4AeN34zkUhpMSGlHElyKoUFZalr2dvWBROkzZhB1eDyO2XsyWUZnaC0HeFI7f2MyC9ULmN/bss9xXVr+h6ag6IezCgwYZ6aigj+f9Acjk4sjQZKUmGU0fO1FljmebpbgrrVA0uRam9bhY8iONqGEuwKZvOaBeNGV9GCoocfF1blnZjU1nuvdVmas938ADIc1B+HKroKOMvIk/HEM6XccTghipur/hGVSH2knd7U17WbqqDWAELp22zv9gStUk4KYjyrEqzxGum8RDCLvRcMgvZ+BWxqoIrHpm5tjmT1hcwKYF3hgESkG9siOyIdTz/lIlChrrSMTRWtdwtZofrE5DUR/dKhPLmSsglWc6ru6lJWdtl0AzmTHmgrfSfatm5/7DdUyRST80sr5151WhgWsq7EMAMmBM8ft/9x4+HjP2ZErwiOht3DywiPONs7ysE4EZ04dnEjuV0t0+58ptXKZFCkfvRFMxddzSQE9+o/mjZv9RaOPBXp7lDCmP3RPlP4g7vfMtduORfZXsJIU+hfOsAzK1YgWZoSLaMw9tiS1bxb2JMqt1jvqSxUM=
file:
# The names of the binaries to output, based on the -output template passed to gox.
- ./_dist/swctl.darwin.amd64
- ./_dist/swctl.linux.amd64
- ./_dist/swctl.linux.arm64
- ./_dist/swctl.windows.amd64.exe
on:
# What to repository to build
repo: sitewhere/swctl
tags: true
condition: $LATEST = true