-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (41 loc) · 865 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
branches:
only:
- main
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
env:
global:
- BUILD_SUFFIX="-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
language: go
go:
- 1.x
cache:
directories:
- $(go env GOCACHE)
- $(go env GOPATH)/pkg/mod
script: make testrace build
jobs:
include:
- os: linux
arch: amd64
script: make lint testrace build # Only run lint here
- os: linux
arch: arm64
- os: linux
arch: ppc64le
- os: linux
arch: s390x
script: make test build # -race not supported on s390x
- os: osx
- os: windows
script: choco install make && make testrace build
env:
- BIN_SUFFIX=".exe"
deploy:
provider: releases
file:
- bin/*.tar.gz
edge: true # opt in to dpl v2
on:
tags: true
after_success:
- bash <(curl -s https://codecov.io/bash)