forked from zeromake/docker-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.17 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
language: go
go:
- 1.x
env:
global:
- REVIEWDOG_VERSION="0.9.11"
- UPX_VERSION="3.95"
- GO111MODULE=on
install:
- mkdir -p ~/bin/ && export export PATH="~/bin/:$PATH"
- curl -fSL https://github.com/reviewdog/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 -o ~/bin/reviewdog && chmod +x ~/bin/reviewdog
- curl -fSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz -o ~/upx.tar.xz && tar -xf ~/upx.tar.xz -C ~ && mv ~/upx-${UPX_VERSION}-amd64_linux/upx ~/bin
script:
- go mod tidy
- go test ./...
- reviewdog -conf=.reviewdog.yml -reporter=github-pr-check
- ./scripts/binary.sh darwin && ./scripts/binary.sh windows && ./scripts/binary.sh linux
- file ./dist/* && ./dist/docker-debug-linux-amd64 info
- ls ./dist | xargs -I {} upx ./dist/{} -o ./dist/{}-upx
- mv ./dist/docker-debug-windows-amd64.exe-upx ./dist/docker-debug-windows-amd64-upx.exe
- file ./dist/* && ./dist/docker-debug-linux-amd64-upx info
- openssl dgst -sha256 ./dist/*
deploy:
provider: releases
api_key:
secure: ${GITHUB_TOKEN}
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true