Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.

Commit

Permalink
Use debian package for travis-ci.
Browse files Browse the repository at this point in the history
 - Cleanup cassandra before installing
 - Wait for cassandra
 - Remove superfluous quotes from travis.yaml
  • Loading branch information
ctavan committed Apr 19, 2012
1 parent b6d3bec commit 34da906
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .travis.yml
Expand Up @@ -3,19 +3,16 @@ node_js:
- 0.6

before_script:
- "curl -LO http://apache.mirrors.pair.com/cassandra/1.0.9/apache-cassandra-1.0.9-bin.tar.gz"
- "tar xzf apache-cassandra-1.0.9-bin.tar.gz"
- "sudo mkdir -p /var/log/cassandra"
- "sudo chown -R `whoami` /var/log/cassandra"
- "sudo mkdir -p /var/lib/cassandra"
- "sudo chown -R `whoami` /var/lib/cassandra"

- "apache-cassandra-1.0.9/bin/cassandra -f &"
- "sleep 10"
- curl -LO http://www.apache.org/dist/cassandra/debian/pool/main/c/cassandra/cassandra_1.0.9_all.deb
- sudo apt-get remove -y --purge cassandra
- sudo rm -rf /var/log/cassandra
- sudo rm -rf /var/lib/cassandra
- sudo dpkg -i cassandra_1.0.9_all.deb
- until nc -z localhost 9160; do sleep 1; done

script:
- "make test"
- make test

notifications:
email: false
campfire: false
campfire: false

0 comments on commit 34da906

Please sign in to comment.