-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
38 lines (33 loc) · 1.46 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
language: go
matrix:
include:
- go: 1.11.x
env: RELEASE_VERSION=true
- go: tip
allow_failures:
- go: tip
# simple cross compile tool for go
before_install:
- go get github.com/mitchellh/gox
# - go get -t -v ./...
install:
- # skip
script:
- "./go.test.sh"
- if [ "${RELEASE_VERSION}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64"
-ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
deploy:
provider: releases
api_key:
secure: WYqs6d52utQJWahpEli1SibaKrBdFFQ+/fqaoNweKWdCp0/cvk2EPhfRkSOL7FPZxyh+vk6iQFvYaagQYpPbpDmnJF2EEnfCf+L4CSjTcsamMkurOU3/HU4U2kGg9NaGGeci7CuirXkeQuu+Gbqar/V88qNB/UGO+rAR8cLhJVguQZtcGtip5zLMweINil1xan/WnBBFI3UOZiNuIxjtztuw0A1FTclfao4aondYWNh8M8l19DWd8X5zrJFGoFlyxX8UR9yroELVTm2dbO0RY3qBnHefa+ND//hb8NQDMyF7tRKiQUJCgwfE/Ppt4XBZgveZT1wlYFJLQXAg1pRx0cT5NgU4OxzrflYieTwuxcGV8N69GL8O4mzk9PE6+vM8Cox7xY7zEtkppjhBBnT3DAl6NyKCLarqFrZ+Hj60rdh1/KxGl5ELXtsfeREJi6ZgSfP5RhjJi/5GzO9InkefThQ9WVPfJwOiXaIh2cVcfHxWFwUzTF+Sielj/ppedPzQBbsr4TvbF1naRXh5Prio9HIg43r7SDnJbMUqjHByKJ4ldwKYyC8p5LMSf1qJwpkkYGHdnxZ+kyeoxXkEwOCk0iX1MCJXEFgRDwpKdgCZ7ZhP14F91QnkDohCZjnvitsXKgfnp7rUAW3erl+ChU29zSmffWim+TUtCitNrialwGE=
file:
- "espoke_linux_amd64"
- "espoke_darwin_amd64"
- "espoke_windows_amd64.exe"
skip_cleanup: true
on:
repo: BarthV/espoke
tags: true
condition: $RELEASE_VERSION = true