1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-23 18:33:45 +01:00
php-dibi/.travis.yml

31 lines
763 B
YAML
Raw Normal View History

2012-10-18 23:00:12 +02:00
language: php
php:
- 5.3.3
- 5.4
- 5.5
2014-03-24 19:16:07 +01:00
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
2012-10-18 23:00:12 +02:00
2015-01-10 19:11:30 +01:00
script:
2015-01-10 19:11:30 +01:00
- vendor/bin/tester tests -s -p php -c tests/php-unix.ini
2015-01-10 19:11:30 +01:00
- php code-checker/src/code-checker.php
2014-05-13 02:47:35 +02:00
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
2012-10-18 23:00:12 +02:00
before_script:
2015-01-10 19:11:30 +01:00
# Install Nette Tester & Code Checker
2014-03-24 19:16:07 +01:00
- composer install --no-interaction --dev --prefer-source
2015-01-10 19:11:30 +01:00
- composer create-project nette/code-checker code-checker ~2.3 --no-interaction --prefer-source
2015-01-10 19:11:30 +01:00
# Create databases.ini
- cp ./tests/databases.sample.ini ./tests/databases.ini
# Create Postgre database
- psql -c 'CREATE DATABASE dibi_test' -U postgres