forked from improbable-eng/kedge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 806 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
sudo: false
language: go
go:
- 1.13.x
matrix:
include:
- os: windows
dist: 1803-containers
env: VERSION=1.13.2 VARIANT=windows/windowsservercore-1803
- os: linux
env: VERSION=1.13.2 VARIANT=buster
go_import_path: github.com/improbable-eng/kedge
before_install:
# disabling windows defender to make the build quicker
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true'; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
install:
- export GOBIN="$GOPATH/bin"
- make deps
script:
# Different line endings on windows trigger a reformatting false positive, see https://github.com/golangci/golangci-lint/issues/580
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then make vet; fi
- make test