-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
36 lines (31 loc) · 1.24 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.10.0"
- UPX_VERSION="3.96"
- GO111MODULE=on
install:
- mkdir -p ~/bin/ && export export PATH="~/bin/:$PATH"
- curl -fSL https://github.com/reviewdog/reviewdog/releases/download/v${REVIEWDOG_VERSION}/reviewdog_${REVIEWDOG_VERSION}_Linux_x86_64.tar.gz -o ~/reviewdog.tar.gz && tar -xf ~/reviewdog.tar.gz -C ~ && mv ~/reviewdog ~/bin
- 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
token: ${GITHUB_TOKEN}
file_glob: true
file: dist/*
cleanup: false
skip_cleanup: true
on:
tags: true