Appveyor support (#2)

This commit is contained in:
Tamási Benjamin
2017-06-20 16:03:55 +02:00
committed by zagrodzki
parent 00e8f24bda
commit aa64bae804
3 changed files with 24 additions and 0 deletions

15
.appveyor/install.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
export PATH="/mingw64/bin:${PATH}"
export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:${PKG_CONFIG_PATH}"
export GOROOT=/mingw64/lib/go
export GOPATH=/go
export CGO_ENABLED=1
pacman --noconfirm -S \
mingw64/mingw-w64-x86_64-go \
mingw64/mingw-w64-x86_64-libusb
go version
go get -t github.com/google/gousb/...
go test github.com/google/gousb/...

1
.gitignore vendored
View File

@@ -1 +1,2 @@
*.sw[op]
.idea/

8
appveyor.yml Normal file
View File

@@ -0,0 +1,8 @@
platform: x64
clone_folder: C:\msys64\go\src\github.com\google\gousb
install:
- C:\msys64\usr\bin\bash.exe -lc "cd /go/src/github.com/google/gousb/ && .appveyor/./install.sh"
build: off