-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (37 loc) · 1.1 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
language: go
go:
- 1.5
- 1.6
env:
global:
- CC=arm-linux-gnueabihf-gcc
- CXX=arm-linux-gnueabihf-g++
- LD=arm-linux-gnueabihf-g++
- AR=arm-linux-gnueabihf-ar
- STRIP=arm-linux-gnueabihf-strip
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
- go get -d github.com/supcik-go/ws2811
- cd ${GOPATH}/src/github.com/supcik-go/ws2811
- git clone https://github.com/jgarff/rpi_ws281x.git
- cd rpi_ws281x
- rm -Rf golang
- patch -i ${TRAVIS_BUILD_DIR}/01_cross.patch
- scons
- cd ..
- patch -i ${TRAVIS_BUILD_DIR}/02_go.patch
install:
- export CGO_ENABLED=1
- export GOOS=linux
- export GOARCH=arm
- export CC_FOR_TARGET=arm-linux-gnueabihf-gcc
- export CXX_FOR_TARGET=arm-linux-gnueabihf-g++
- export CPATH=${GOPATH}/src/github.com/supcik-go/ws2811/rpi_ws281x
- export LIBRARY_PATH=${GOPATH}/src/github.com/supcik-go/ws2811/rpi_ws281x
- cd ${TRAVIS_BUILD_DIR}
- go get -t -v ./...
script:
# This test must be run on a Raspberry Pi
# So we are happy it it compiles properly
- true