forked from reborndb/qdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (19 loc) · 892 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: go
go:
1.3.3
before_install:
- go get github.com/tools/godep
- go install -race std
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -y -qq gcc-4.8 g++-4.8 zlib1g-dev libbz2-dev libsnappy-dev libjemalloc-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
- cd $TRAVIS_BUILD_DIR/extern/rocksdb && make shared_lib
- sudo cp -rf $TRAVIS_BUILD_DIR/extern/rocksdb/include/rocksdb /usr/local/include
- sudo cp -f $TRAVIS_BUILD_DIR/extern/rocksdb/librocksdb.so /usr/local/lib
- export CGO_LDFLAGS="-lsnappy"
- cd $TRAVIS_BUILD_DIR/extern/gorocks && go install ./ && cd $TRAVIS_BUILD_DIR
- export LD_LIBRARY_PATH=/usr/local/lib
script:
- godep go test --race -tags 'rocksdb' -cover -v ./pkg/...