-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1.5 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
language: go
go:
- 1.13.x
env:
global:
- GO111MODULE=on
- GORELEASER_VERSION=0.120.2
- ARIANG_VERSION="1.1.4"
- UPXVER="3.94"
install:
- curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b $(go env GOPATH)/bin v${GORELEASER_VERSION}
- wget https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip && unzip -q AriaNg-${ARIANG_VERSION}.zip -d AriaNg
- |
if [[ ! -f "$(go env GOPATH)/bin/upx" ]]
then
echo "Installing upx .."
curl -OL "https://github.com/upx/upx/releases/download/v${UPXVER}/upx-${UPXVER}-amd64_linux.tar.xz"
tar xvf "upx-${UPXVER}-amd64_linux.tar.xz"
cp "upx-${UPXVER}-amd64_linux/upx" "$(go env GOPATH)/bin"
fi
- ls -al
- upx --version
- chmod +x upx.sh
- ls -al
- go get -u -v github.com/UnnoTed/fileb0x
- go install github.com/UnnoTed/fileb0x
deploy:
- provider: script
skip_cleanup: true
script: >-
export GO_VERSION="$(go version)" &&
export BUILT_BY="$(whoami)@$(hostname)" &&
goreleaser release --skip-validate --skip-sign --debug
on:
all_branches: true
condition: $TRAVIS_COMMIT_MESSAGE == *"[release]"*
- provider: script
skip_cleanup: true
script: >-
export GO_VERSION="$(go version)" &&
export BUILT_BY="$(whoami)@$(hostname)" &&
goreleaser release --snapshot --skip-publish --rm-dist --debug
on:
all_branches: true
condition: $TRAVIS_COMMIT_MESSAGE == *"[test]"*