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
|
2015-06-13 10:37:45 +02:00
|
|
|
- 7.0
|
2014-03-24 19:16:07 +01:00
|
|
|
- hhvm
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2015-06-13 10:37:45 +02:00
|
|
|
- php: 7.0
|
2014-03-24 19:16:07 +01:00
|
|
|
- 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
|