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

78 lines
1.9 KiB
YAML
Raw Normal View History

2012-10-18 23:00:12 +02:00
language: php
php:
2016-07-20 15:54:58 +02:00
- 7.1
2017-07-24 13:54:13 +02:00
- 7.2
2018-10-17 17:47:27 +02:00
- 7.3
2019-11-19 01:45:30 +01:00
- 7.4
2012-10-18 23:00:12 +02:00
2019-09-30 10:55:50 +02:00
services:
- mysql
- postgresql
2017-07-24 13:54:13 +02:00
before_install:
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
2017-07-24 13:54:13 +02:00
# Create databases.ini
- cp ./tests/databases.travis.ini ./tests/databases.ini
# Create Postgre database
- psql -c 'CREATE DATABASE dibi_test' -U postgres
install:
2017-07-24 14:46:58 +02:00
- travis_retry composer install --no-progress --prefer-dist
2015-01-10 19:11:30 +01:00
script:
2017-07-24 13:54:13 +02:00
- vendor/bin/tester tests -s
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
2017-07-24 13:54:13 +02:00
jobs:
include:
- name: Nette Code Checker
2020-02-23 19:02:02 +01:00
php: 7.4
2017-07-24 13:54:13 +02:00
install:
2018-09-13 01:46:57 +02:00
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
2017-07-24 13:54:13 +02:00
script:
2018-09-13 01:46:57 +02:00
- php temp/code-checker/code-checker --strict-types
- name: Nette Coding Standard
2020-02-23 19:02:02 +01:00
php: 7.4
install:
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
script:
2018-09-13 01:46:57 +02:00
- php temp/coding-standard/ecs check src tests examples --config tests/coding-standard.yml
2017-07-24 13:54:13 +02:00
- stage: Static Analysis (informative)
2020-02-23 19:02:02 +01:00
php: 7.4
script:
2019-12-10 17:08:07 +01:00
- composer run-script phpstan
2017-07-24 13:54:13 +02:00
- stage: Code Coverage
2020-02-23 19:02:02 +01:00
php: 7.4
2017-07-24 13:54:13 +02:00
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- php coveralls.phar --verbose --config tests/.coveralls.yml
2015-01-10 19:11:30 +01:00
2017-07-24 13:54:13 +02:00
allow_failures:
- stage: Static Analysis (informative)
2017-07-24 13:54:13 +02:00
- stage: Code Coverage
sudo: false
cache:
directories:
- $HOME/.composer/cache
2017-07-24 13:54:13 +02:00
notifications:
email: false