From 2f8752353506cad8d806f362847517a8bb2475cb Mon Sep 17 00:00:00 2001 From: Silvio Tomatis Date: Mon, 13 May 2013 14:45:41 +0200 Subject: [PATCH] Add travis testing --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..86b92c0a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: python +python: + - "2.7" +services: + - cassandra +before_install: + - sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh" + - sudo service cassandra start +install: + - "pip install -r requirements.txt --use-mirrors" + - "pip install pytest --use-mirrors" +script: + - while [ ! -f /var/run/cassandra.pid ] ; do sleep 1 ; done # wait until cassandra is ready + - "py.test cqlengine/tests/"