language: node_js

node_js:
  - 0.8

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
  - sleep 8

script:
  - rm -rf node_modules/zookeeper-client/node_modules/zookeeper/build && cd node_modules/zookeeper-client/node_modules/zookeeper/ && npm build
  - npm run-script lint
  - npm run-script test

notifications:
  email:
    - tomaz+travisci@tomaz.me

language: node_js

node_js:
  - 0.8

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
  - sleep 8

script:
  - rm -rf node_modules/zookeeper-client/node_modules/zookeeper/build && cd node_modules/zookeeper-client/node_modules/zookeeper/ && npm run-script build && cd ../../../../
  - npm run-script lint
  - npm run-script test

notifications:
  email:
    - tomaz+travisci@tomaz.me

Use run-script and go back to the root directory before running lint and tests.
Use run-script and go back to the root directory before running lint and tests.
