forked from TokTok/go-toxcore-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (47 loc) · 1.24 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
44
45
46
47
48
49
50
51
52
language: go
sudo: required
addons:
apt:
sources:
- sourceline: 'ppa:chris-lea/libsodium'
packages:
- libclang-dev
- libopus-dev
- libsodium-dev
- libvpx-dev
matrix:
include:
- go: 1.7.x
if: type IN (push, api, cron)
- go: 1.8.x
if: type IN (push, api, cron)
- go: 1.9.x
if: type IN (push, api, cron)
- go: master
before_install:
- go get github.com/mattn/goveralls
install:
# Add libclang's lib directory to search path for Go.
- export CGO_LDFLAGS="-L`llvm-config-3.4 --libdir`"
# Install toxcore.
- git clone https://github.com/TokTok/c-toxcore
- cd c-toxcore
- cmake .
- make -j2
- sudo make install
- cd ..
- sudo ldconfig > /dev/null
# Install Go packages.
- go get github.com/bitly/go-simplejson
- go get github.com/go-clang/v3.4/clang
- go get github.com/kitech/godsts/maps/hashbidimap
- go get github.com/kitech/godsts/maps/hashmap
- go get github.com/kitech/godsts/sets/hashset
- go get github.com/masatana/go-textdistance
- go get github.com/sasha-s/go-deadlock
- go get github.com/streamrail/concurrent-map
- go get github.com/sysr-q/gopp/gopp
- go get github.com/xrash/smetrics
script:
- go run tools/generrmsg.go > const_auto.go && git diff --exit-code
- $GOPATH/bin/goveralls -service=travis-ci