-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (37 loc) · 1.9 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
language: go
go:
- 1.15.x
- master
# Allow builds from tip to fail - they might be in an unstable state
jobs:
allow_failures:
- go: master
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
env:
global:
- GO111MODULE=on
script:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then CGO_ENABLED=0 go build -ldflags="-w -s -X 'github.com/kernle32dll/ew/internal/cmd.buildBranch=$TRAVIS_BRANCH'" -o ew-$TRAVIS_OS_NAME-$TRAVIS_CPU_ARCH.exe . ; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then CGO_ENABLED=0 go build -ldflags="-w -s -X 'github.com/kernle32dll/ew/internal/cmd.buildDate=$(date -u '+%Y/%m/%d %H:%M:%S')' -X 'github.com/kernle32dll/ew/internal/cmd.buildBranch=$TRAVIS_BRANCH'" -o ew-$TRAVIS_OS_NAME-$TRAVIS_CPU_ARCH . ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then ./ew-$TRAVIS_OS_NAME-$TRAVIS_CPU_ARCH.exe --version ; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then ./ew-$TRAVIS_OS_NAME-$TRAVIS_CPU_ARCH --version ; fi
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
token:
secure: wI24jsE0lOkQ9gXTyMI7pi1KeyQnCSqe7V/ypk+nlvIM8OTM6ZydCCP3lzOeeIFjD5ilX+f7m8QVVqRAYGbAZYgKka79dcF03k9XUyu8gF7jigv2h9GVZYmOUcq+FFy0o5+X5M03e/aWdjsYl7gtHtu0pJ6W1ENKgVHKEMFbPntPKASAR7yuupN4BPVS6cyENuwfQIe8jvRlV1FfDsltguOzachb+N4YjKS16NDlGGUzOva76W9EEI9N9N3REU5+LwQZgv28am399n2yi1el+1bgHi2qNnK30JonjeoWpg5fKL15jWp1s1yNj88gG0VCAB2by048C+RUyMXYSFyhcR7vv+hP+Q8/3k+9aO4beEIuziQubytWTGqjCFjbsFwbPjDyPsOWpjiqhIGc3qmnKrcqzX6EWtY2qOho7JSzXHJcGXNE4vYEBMt8vJGeyDB8Uf7D8UXc7fZOXQsGajsoAurItquiVP0tlz+su8G/KQG6RuizBuWRtbOdBcn0d8zx5bhnDJpqBdIUAPW+hfhMyfd18RdgqX2v0tKa1oiIEnOV425RhPWuYa+KSC6N2ko2lnPf9Em+OZk/wFdDIbLM6Mn/rUAdFLMaQgubnUHwX06+hyxQbFndRa9gFk6ucGND9JkJVMk1kXGBt36rSZrPjY4qQVF9aMeJ0ozwkafxs0Q=
file_glob: true
file: ew*
skip_cleanup: true
on:
repo: kernle32dll/ew
tags: true
go: 1.15.x