mirror of
https://github.com/dg/dibi.git
synced 2025-08-31 09:41:43 +02:00
39 lines
850 B
YAML
39 lines
850 B
YAML
language: php
|
|
php:
|
|
- 5.3.3
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- hhvm
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: 7.0
|
|
- php: hhvm
|
|
|
|
script:
|
|
- vendor/bin/tester tests -s -p php -c tests/php-unix.ini
|
|
- php code-checker/src/code-checker.php
|
|
|
|
after_failure:
|
|
# Print *.actual content
|
|
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
|
|
|
|
before_script:
|
|
# Install Nette Tester & Code Checker
|
|
- travis_retry composer install --no-interaction
|
|
- travis_retry composer create-project nette/code-checker code-checker ~2.5 --no-interaction
|
|
|
|
# Create databases.ini
|
|
- cp ./tests/databases.sample.ini ./tests/databases.ini
|
|
|
|
# Create Postgre database
|
|
- psql -c 'CREATE DATABASE dibi_test' -U postgres
|
|
|
|
sudo: false
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|