-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·43 lines (42 loc) · 1.92 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
language: go
matrix:
include:
- go: '1.11'
- go: '1.12'
- go: '1.13'
env: LATEST=true
- go: tip
env:
global:
- UPXVER="3.95"
before_install:
- go get github.com/mitchellh/gox
- go get github.com/konsorten/go-windows-terminal-sequences
install:
- go get -v -t ./...
- echo "Installing upx .."
- "{ [ -f upx/${UPXVER}/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}; }"
- export PATH="${TRAVIS_BUILD_DIR}/upx/${UPXVER}/:${PATH}"
- upx --version | grep -E '^upx'
script:
- export PATH=$GIT_DIST_PATH:$PATH
- make test-coverage
- go vet ./...
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="docker-hub-cli.{{.OS}}.{{.Arch}}"
-ldflags "-s -w -X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
- if [ "${LATEST}" = "true" ]; then upx docker-hub-cli.*; fi
after_success:
- bash <(curl -s https://codecov.io/bash)
- ls -la
#deploy:
# provider: releases
# api_key:
# secure: "hinJLn3ACzbz99HAK/DLPACrrLNyr7eXxEe997Km/0l8gVK9TZwGeSoTxMdeNeTHrOkiqrF8KWHbpipcsgWOjDFDCVxUw6XbvpBC0qkOj75uLObqldS7E0A+J73ux28ZZZYQRPsvpkJ1qMs2hSKiMK7RCFcYppPWMJt+tfQTVO8lQUoY1hsuLHExgLkhduXjnI4JlRorpF8ZIyRpjECv1LAekk8RDUQyv/WBII8Ybqh1fPVHAF2upOk66DBwTQsltV/SeVEqlRgqkQwN6J6ycaZbRp4ZdvK3xQwS430BmnGco8LFjNj8OXkkp6uG9IUDH2J9EZ+ngJeniwutiXn+iEoZ5l8TeTjz98pwmd3gqw2I9JhHaj4t9IwoQOfaiH+EWyLJArL3W/HJg9d0QIh/UO9zIYWgwTb/1fnKnnFHXJ7ZDEslwpZSaLya/JzCBf1TDkZy3QrhVTG2H1YKSDUlBv0wZBf6snaOBvKR7Tr8lPKJUG1z49h13Kot/83r4iH9fPBEA8ygZyzA+2X8ha4Vpt7U4kPM3VeM9OHbir4kGQ1p2whRsy/fiq4k4+RLSOVZPUjjD34V9iYIEOwnu94LxGOWVMUM0KuOuuJC6kbXUUOyvYGtcT55oQo+d9LX4RuPDWBCsogJLqZUbZPo6fk7uIx1eT3mqFUuNyvP5SGnong="
# file:
# - docker-hub-cli.linux.amd64
# - docker-hub-cli.darwin.amd64
# - docker-hub-cli.windows.amd64.exe
# on:
# repo: sp0x/docker-hub-cli
# tags: true