forked from moogle19/ble
-
Notifications
You must be signed in to change notification settings - Fork 108
/
.travis.yml
24 lines (19 loc) · 879 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
language: go
os:
- osx
- linux
go:
- 1.8
- 1.9
- tip
go_import_path: github.com/go-ble/ble
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then go get ./...; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GOOS=linux go get && GOOS=linux go get ./linux; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then go vet ./...; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GOOS=linux go vet && GOOS=linux go vet ./linux/...; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then go test ./...; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GOOS=linux go test && GOOS=linux go test ./linux/...; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then go build -v ./...; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GOOS=linux go build -v && GOOS=linux go build -v ./linux/...; fi