Merge pull request #2 from scylladb/mmt/travis_on_scylla

run travis integration tests on scylla
This commit is contained in:
Michał Matczuk
2017-08-01 12:55:11 +02:00
committed by GitHub
2 changed files with 36 additions and 5 deletions

View File

@@ -1,19 +1,28 @@
language: go language: go
go: go:
- 1.8 - 1.8
- 1.7 - 1.7
matrix: env:
fast_finish: true 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: addons:
apt: apt:
packages: packages:
- moreutils - moreutils
before_install:
- ./.travis_start_db.sh
install: install:
- sudo service cassandra start
- make get-deps - make get-deps
script: 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