language: go

go:
  - 1.3.3
  - 1.4.2
  - 1.5
  - 1.6
  - tip

env:
  - CGO_CFLAGS="-I./leveldb-master/include"
  - CGO_LDFLAGS="-L./leveldb-master./out-shared -lsnappy"

before_install:
  - sudo apt-get install -y libsnappy-dev
  - ./install-levigo.sh

install:
  - go get github.com/bitly/go-simplejson
  - CGO_CFLAGS="-I$TRAVIS_BUILD_DIR/leveldb-master/include" CGO_LDFLAGS="-L$TRAVIS_BUILD_DIR/leveldb-master/out-shared -lsnappy" go get github.com/jmhodges/levigo

script:
  - LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/leveldb-master/out-shared go test -v

language: go

go:
  - 1.3.3
  - 1.4.2
  - 1.5
  - 1.6
  - tip

before_install:
  - sudo apt-get install -y libsnappy-dev
  - ./install-levigo.sh

install:
  - go get github.com/bitly/go-simplejson
  - CGO_CFLAGS="-I$TRAVIS_BUILD_DIR/leveldb-master/include" CGO_LDFLAGS="-L$TRAVIS_BUILD_DIR/leveldb-master/out-shared -lsnappy" go get github.com/jmhodges/levigo

script:
  - LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/leveldb-master/out-shared go test -v

Remove CGO_CFLAGS CGO_LDFLAGS environment variables
Remove CGO_CFLAGS CGO_LDFLAGS environment variables
