language: go
go:
  - 1.7
  - 1.8

before_install:
  # https://github.com/travis-ci/travis-ci/issues/1053
  - sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"

services:
  - cassandra

before_script:
  # peg
  - go get -u github.com/pointlander/peg
  - go get -u golang.org/x/tools/cmd/goimports
  - cqlsh -f metric_metadata/cassandra/schema/schema_test.cql

script:
  - ./testing_support/script/verify-build
  - go test -v -timeout 1m ./...

language: go
go:
  - 1.7
  - 1.8

sudo: required

services:
  - cassandra

before_script:
  # peg
  - go get -u github.com/pointlander/peg
  - go get -u golang.org/x/tools/cmd/goimports
  - cqlsh -f metric_metadata/cassandra/schema/schema_test.cql

script:
  - ./testing_support/script/verify-build
  - go test -v -timeout 1m ./...

Use recommended Travis-CI config for Cassandra
Use recommended Travis-CI config for Cassandra

As suggested in the Travis-CI documentation.
