miniflux-legacy/.travis.yml

42 lines
1.2 KiB
YAML
Raw Permalink Normal View History

git:
depth: 3
language: php
2016-12-29 21:45:09 +01:00
sudo: required
2017-11-02 04:38:08 +01:00
dist: precise
php:
2016-08-18 03:06:43 +02:00
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3
2016-12-29 21:45:09 +01:00
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y apache2 libapache2-mod-fastcgi
install:
2016-08-18 03:06:43 +02:00
- composer install
2016-12-29 21:45:09 +01:00
before_script:
- ./tests/ci/install.sh
- npm install
2016-12-29 21:45:09 +01:00
2016-08-18 03:06:43 +02:00
script:
- ./node_modules/.bin/jshint assets/js/src/*.js
2016-12-26 21:07:18 +01:00
- ./vendor/bin/phpunit -c tests/phpunit.unit.sqlite.xml
- ./vendor/bin/phpunit -c tests/phpunit.unit.postgres.xml
- ./vendor/bin/phpunit -c tests/phpunit.unit.mysql.xml
2016-12-29 21:45:09 +01:00
- ./vendor/bin/phpunit -c tests/phpunit.functional.sqlite.xml
- cp ./tests/ci/config.postgres.php $TRAVIS_BUILD_DIR/config.php
2016-12-30 00:04:56 +01:00
- ./vendor/bin/phpunit -c tests/phpunit.functional.postgres.xml tests/functional/ApiTest.php
- ./vendor/bin/phpunit -c tests/phpunit.functional.postgres.xml tests/functional/FeverApiTest.php
- cp ./tests/ci/config.mysql.php $TRAVIS_BUILD_DIR/config.php
- ./vendor/bin/phpunit -c tests/phpunit.functional.mysql.xml tests/functional/ApiTest.php
- ./vendor/bin/phpunit -c tests/phpunit.functional.mysql.xml tests/functional/FeverApiTest.php
2016-12-29 21:45:09 +01:00
after_failure:
- cat apache_error.log
- cat apache_access.log