-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
68 lines (57 loc) · 1.15 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: go
dist: bionic
env:
global:
- CACHE_NAME=${TRAVIS_ARCH}
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
git:
depth: false
go:
- "1.14.1"
- master
arch:
- amd64
- arm64
os:
- linux
- osx
- windows
jobs:
allow_failures:
- go: master
- arch: arm64
fast_finish: true
exclude:
- os: windows
go: master
- arch: arm64
os: osx
- arch: arm64
os: windows
cache:
directories:
- $HOME/gopath/pkg/mod
- $HOME/.cache/go-build
- $HOME/Library/Caches/go-build
- $HOME/AppData/Local/go-build
before_install:
# https://travis-ci.community/t/go-cant-find-gcc-with-go1-11-1-on-windows/293/5
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
choco install mingw -y;
export PATH=/c/tools/mingw64/bin:"$PATH";
fi
install:
- mkdir -p $HOME/src
- mv $TRAVIS_BUILD_DIR $HOME/src
- export TRAVIS_BUILD_DIR=$HOME/src/delta
- cd $HOME/src/delta
script:
- go mod download
- go mod verify
- go build
- cd commands
- go test -coverprofile=coverage.txt -covermode=atomic
- go tool cover -func=coverage.txt
after_success:
- bash <(curl -s https://codecov.io/bash)