run travis integration tests on scylla

This commit is contained in:
Michał Matczuk
2017-07-31 13:29:40 +02:00
parent 8ce2726baf
commit c7f0483dd3
2 changed files with 36 additions and 5 deletions

View File

@@ -1,19 +1,28 @@
language: go
go:
- 1.8
- 1.7
matrix:
fast_finish: true
env:
global:
- SCYLLA_OPTS="--network-stack posix --enable-in-memory-data-store 1 --developer-mode 1"
- SCYLLA_OPTS_LOG="--log-to-stdout 1 --default-log-level info"
matrix:
- DB="scylla"
- DB="cassandra"
sudo: true
dist: trusty
addons:
apt:
packages:
- moreutils
before_install:
- ./.travis_start_db.sh
install:
- sudo service cassandra start
- make get-deps
script:

22
.travis_start_db.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
case ${DB} in
scylla)
echo "deb [arch=amd64] http://s3.amazonaws.com/downloads.scylladb.com/deb/ubuntu trusty scylladb-1.7/multiverse" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt-get -qq update
sudo apt-get install -y --allow-unauthenticated scylla-server
sudo /usr/bin/scylla --options-file /etc/scylla/scylla.yaml ${SCYLLA_OPTS} ${SCYLLA_OPTS_LOG} &
;;
cassandra)
sudo service cassandra start
;;
*)
env
false
;;
esac