-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
42 lines (35 loc) · 2.3 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
# request VM instead of container (default)
sudo: required
dist: trusty
env:
# encrypted form of COVERALLS_TOKEN API key
- secure: "Ok3RNguO3Ar1ItaLMS5XwOfPFwUcgdpyUwQAejvf/4NFCEm9xTsaMxS7xQaKJ5LZ+leS9ulgFbITqY+r2kdPhjWI/SUsP15KtDWnaIqrVjahuTYkGmK2N72VvmNXX3nGj6PUBjTb7/IMJWraPI/iKF2t39NfQCiBLTP9V66wiReB6P2R8NlP9BuXzwtOktwkaZc/yKy01xXlz+ZbpoLfYpg0+RH94aN9g4E7467D01KLgwSsiP3FsPcKEYmlG9AuxzRNeKdTGZiVJqj96VFdBYgLiLFQnlEF/avBeyPP/Nz8vJFJRJQuX0yW7gyKA2pUCqfPVogRbwp3WexJHOlTOCC65fxl/N7x9w94muTFEjjZ9ALz+xPToVSiNkw/zYTdqTAJP04AKGDsvmGZMqPPuK8wLqUzVMkQmfYmLLYBlzNHhLsinZBFYtqnL95NJ/SLGvVfIJuJ3HzMM2LGvt+0LWgVFNymx3atap3kPhjEUVs/9+FBNcu1gRAjttQg6evYJmSMw3Iijr6riJgVPTMjTJWGVUchCLmO9hVefxfvAysbUxyajaKCYBtYq+jBDkAnGQ4ztq5aL1W0b3CXSs2YlVRMoKEmznzCWJXIMR3IFbtaeHEoeky/mqzkCF3vX2JfLHQ+VL9OQokdnC1Ammds3SwuXLku9+PIzl9rXzhxziI="
go:
- 1.10.x
before_install:
- go get github.com/sirupsen/logrus
- go get github.com/brutella/can
- go get github.com/google/go-cmp/cmp
- go get github.com/gorilla/mux
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
# create virtual CANBus interface vcan0
- sudo modprobe vcan
- sudo ip link add dev vcan0 type vcan
- sudo ip link set up vcan0
- ifconfig vcan0
script:
- go test -v -covermode=count -coverprofile=coverage.out -tags test ./...
# upload coverage.out report
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- export GOARCH=arm; make install
deploy:
provider: releases
api_key:
secure: "Bw6uqasy6W8aFW/idrgvCjPt/HPD/VtTfyvaciOLYKLh7WGumhC6z+zN2knPkSFjrF3B/0WOjfoOcxTNBDTSxq8IUrhvQgrD2tgPx+9zXvy0Ch1DKhUpNPdiis7VM/O5fG9Uq7dylV5XrPmlwqFOkTl/xTk3fKH7lVDOSX07bTnHwdvFkpRBH8RwhWuYqmtJKmfK1CYGN1wc8FekjADGPI7YrZa3ccNyDyNLU4JH4qjLibIWvY7p5GJHMR8K9MhD585fUB6l0WK3ZMezf1GyTs7TehqvwUhIdt6BphA28UNTkHu82k4Jy/1zZlrImLhjxLT+AAInVW/Utjlze4IDSlBR2dAhm50G7tzec2BgNhxrMRV/BzpPMK7HLwE9ehXwZr2THEggRIBLyKQVkqfDdEDLezL77/cCzR7lpuY8L0l35XEOPCw8765QAhZDhbIQvivycJlEyV30fN/UaPtgoBDIHLLIbM4zF+ljzyHCoHSzKiS/Dr9vss03V5Ojbtq7MV1o6rcwcuuTk/PjNffAA5WgPmTm9hfe2qsov5IlgtMcagVoEDq5InFurUmMLtlyZO9wJAkhRho4Fnfny6y9lsKU/UJvPMZtGfvo732g9WGj1k7wuqHobR7hh2Dz3ZoIqlLbjj+BW3A4c0DLGp0ORFm6J99GoAvut8lbrGd3ou4="
file: "dist/lgresu-*-linux-*.tar.gz"
file_glob: "true"
skip_cleanup: true
on:
tags: true