-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
33 lines (30 loc) · 986 Bytes
/
.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
language: go
sudo: true
go:
- 1.11.x
env:
global:
- GORELEASER_VERSION=0.93.2
- ARIANG_VERSION="1.0.0"
- UPXVER="3.94"
before_install:
- wget https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip && unzip -q AriaNg-${ARIANG_VERSION}.zip -d AriaNg
- wget https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb
- sudo dpkg -i goreleaser_amd64.deb
- |
if [[ ! -f "upx/${UPXVER}/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"
mkdir -p upx
mv "upx-${UPXVER}-amd64_linux" "upx/${UPXVER}"
fi
- export PATH="${TRAVIS_BUILD_DIR}/upx/${UPXVER}/:${PATH}"
- upx --version | grep -E '^upx'
- chmod +x upx.sh
script:
- goreleaser --skip-validate --skip-sign --debug
branches:
only:
- master