Permalink
Browse files

Adding shell script to run tests

It iterates over tested components and runs phpunit for each of them
  • Loading branch information...
Ocramius committed Apr 3, 2012
1 parent 052811e commit 65b15ca06569c774b22e1f40c8ef70911f8cb253
Showing with 8 additions and 0 deletions.
  1. +8 −0 .travis/run-tests.sh
View
@@ -0,0 +1,8 @@
+#!/bin/bash
+travisdir=$(dirname $(readlink /proc/$$/fd/255))
+testdir="$travisdir/../tests"
+testedcomponents=(`cat "$travisdir/tested-components"`)
+
+for tested in "${testedcomponents[@]}"
+ do phpunit -c $testdir/phpunit.xml $testdir/$tested
+done

0 comments on commit 65b15ca

Please sign in to comment.