Permalink
Browse files

Modify travis config so it also runs tests for with cassandra backend.

  • Loading branch information...
1 parent 6780984 commit c4894bad07f5382ba95cae7aaa2904409e036e54 @Kami Kami committed Apr 30, 2012
Showing with 46 additions and 3 deletions.
  1. +5 −1 .travis.yml
  2. +2 −1 package.json
  3. +1 −1 scripts/tests.sh
  4. +19 −0 tests/dependencies-travis-cassandra.json
  5. +19 −0 tests/dependencies-travis-redis.json
View
@@ -3,8 +3,12 @@ language: node_js
node_js:
- 0.6
+before_install:
+ - sudo service cassandra start
+ - sleep 3
+
before_script: npm run-script lint
-script: npm run-script test-travisci
+script: npm run-script test-travisci-redis && npm run-script test-travisci-cassandra
notifications:
email:
View
@@ -49,7 +49,8 @@
"scripts": {
"lint": "./scripts/lint.sh",
"test": "./scripts/tests.sh",
- "test-travisci": "TRAVISCI=1 ./scripts/tests.sh",
+ "test-travisci-redis": "DB_BACKEND=redis TRAVISCI=1 ./scripts/tests.sh",
+ "test-travisci-cassandra": "DB_BACKEND=cassandra TRAVISCI=1 ./scripts/tests.sh",
"benchmark-env": "NODE_PATH=lib node_modules/whiskey/bin/whiskey-process-runner --config tests/dependencies-benchmark.json --run"
}
}
View
@@ -3,7 +3,7 @@ if [ ! $DB_BACKEND ]; then
fi
if [ $TRAVISCI ]; then
- config="tests/dependencies-travis.json"
+ config="tests/dependencies-travis-${DB_BACKEND}.json"
else
config="tests/dependencies-${DB_BACKEND}.json"
fi
@@ -0,0 +1,19 @@
+{
+ "mock_auth_api": {
+ "cmd": ["dev-bin/mock-auth-api-server"],
+ "cwd": ["__dirname", ".."],
+ "log_file": "test-mock-auth-api-server.log"
+ },
+
+ "proxy_server": {
+ "cmd": ["bin/server", "-c", "tests/conf/proxy-cassandra.json"],
+ "cwd": ["__dirname", ".."],
+ "log_file": "test-proxy.log",
+ "wait_for": "socket",
+ "wait_for_options": {
+ "host": "127.0.0.1",
+ "port": 9000
+ },
+ "timeout": 10000
+ }
+}
@@ -0,0 +1,19 @@
+{
+ "mock_auth_api": {
+ "cmd": ["dev-bin/mock-auth-api-server"],
+ "cwd": ["__dirname", ".."],
+ "log_file": "test-mock-auth-api-server.log"
+ },
+
+ "proxy_server": {
+ "cmd": ["bin/server", "-c", "tests/conf/proxy-redis.json"],
+ "cwd": ["__dirname", ".."],
+ "log_file": "test-proxy.log",
+ "wait_for": "socket",
+ "wait_for_options": {
+ "host": "127.0.0.1",
+ "port": 9000
+ },
+ "timeout": 10000
+ }
+}

0 comments on commit c4894ba

Please sign in to comment.