diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-02 20:43:58 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-02 20:43:58 +0400 |
commit | 7183cc45b26f8761c4c51dc880baa150041acc31 (patch) | |
tree | 2c00137f2cb69c29e1afda0e7bcc2c4dcc90c177 /.travis.yml | |
parent | b067215cfa67dac8f0eaf1a259fc1842c1e0eb34 (diff) |
adding php syntax check via travis-ci.org
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..af69e92e6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +# see http://about.travis-ci.org/docs/user/languages/php/ for more hints +language: php + +# list any PHP version you want to test against +php: + # using major version aliases + + # aliased to a recent 5.3.x version + - 5.3 + # aliased to a recent 5.4.x version + - 5.4 + # aliased to a recent 5.5.x version + - 5.5 + +# optionally specify a list of environments, for example to test different RDBMS +#env: +# - DB=mysql +# - DB=pgsql + +# execute any number of scripts before the test run, custom env's are available as variables +#before_script: +# - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi +# - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hello_world_test;" -U postgres; fi +# - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi + +# omitting "script:" will default to phpunit +# use the $DB env variable to determine the phpunit.xml to use +#script: phpunit --configuration phpunit_$DB.xml --coverage-text +script: ant test + +# configure notifications (email, IRC, campfire etc) +#notifications: +# irc: "irc.freenode.org#travis" + |