forked from uber-archive/cherami-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 1.78 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
language: go
go:
- 1.7
addons:
apt:
packages:
- python
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get remove gcc g++ libc6-dev -y
- sudo apt-get install gcc-4.9 g++-4.9 libsnappy-dev zlib1g-dev libbz2-dev -qq
- wget http://launchpadlibrarian.net/198723917/libc6_2.19-0ubuntu6.6_amd64.deb
- wget http://launchpadlibrarian.net/198723918/libc6-dev_2.19-0ubuntu6.6_amd64.deb
- wget http://launchpadlibrarian.net/198723921/libc-dev-bin_2.19-0ubuntu6.6_amd64.deb
- wget http://launchpadlibrarian.net/296841256/linux-libc-dev_3.13.0-106.153_amd64.deb
- sudo dpkg -i libc6_2.19-0ubuntu6.6_amd64.deb libc6-dev_2.19-0ubuntu6.6_amd64.deb libc-dev-bin_2.19-0ubuntu6.6_amd64.deb linux-libc-dev_3.13.0-106.153_amd64.deb
- export CXX="g++-4.9" CC="gcc-4.9"
- wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags2_2.0-1.1ubuntu1_amd64.deb
- wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags-dev_2.0-1.1ubuntu1_amd64.deb
- sudo dpkg -i libgflags-dev_2.0-1.1ubuntu1_amd64.deb libgflags2_2.0-1.1ubuntu1_amd64.deb
install:
- go get -u github.com/Masterminds/glide
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- pip install --user ccm
- pip install --user cqlsh==5.0.3
- ccm create test -v 2.2.8 -n 1 -s
- sudo ln -sf /home/travis/.local/bin/cqlsh /usr/local/bin/cqlsh
- travis_wait 20 ./scripts/travis/get-rocksdb.sh
- export CGO_CFLAGS="$CGO_FLAGS -I`pwd`/vendor/github.com/cockroachdb/c-rocksdb/internal/include"
- export CGO_LDFLAGS="$CGO_LDFLAGS -L`pwd`/vendor/github.com/cockroachdb/c-rocksdb/internal -lrocksdb"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pwd`"
script:
- EMBEDROCKSDB=0 make cover_ci