diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-12 19:50:16 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-12 19:50:16 +0400 |
commit | 77d8da68bb50b6fde26848ab3ac0133ba61342e6 (patch) | |
tree | 5851a021b4fe4f017189393a855b4fc1bea39f3e /.travis.yml | |
parent | 1ad72b24d67bdbaeecf5466775874a0f54756c3e (diff) |
adding travis-ci support - first step if pure php lint
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 00000000..af69e92e --- /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" + |