forked from jaypipes/ghw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (42 loc) · 1.12 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
language: go
# Using sudo triggers a real virtual machine as opposed to a container, which
# allows ghw to actually determine things like host memory or block storage...
sudo: required
script:
- source ./.get-go-packages.sh
- go test -v $GO_PACKAGES
- go run cmd/ghwc/main.go
env:
- GHW_TESTING_SKIP_GPU=1
matrix:
include:
# On Go 1.10 and Go 1.11, use dep to ensure dependencies before running go
# test.
- os: linux
go: "1.10"
install:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure -v
- os: linux
go: "1.11"
install:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure -v
# On Go >=1.12, use go modules to ensure dependencies instead of dep
- os: linux
go: "1.12"
env: GO111MODULE=on
- os: linux
go: "1.13"
env: GO111MODULE=on
- os: linux
go: "1.14.x"
env: GO111MODULE=on
# Tests that ghw builds on MacOSX (even though there is currently only
# support for block devices)
#- os: osx
# go: "1.12"
# env: GO111MODULE=on
#- os: osx
# go: "1.13"
# env: GO111MODULE=on