wallabag/.travis.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

2015-01-30 09:09:53 +01:00
language: php
2015-01-31 09:15:51 +01:00
2015-03-28 00:23:25 +01:00
# faster builds on docker-container setup
2015-03-27 19:47:30 +01:00
sudo: false
2015-09-28 20:35:56 +02:00
# used for HHVM
addons:
apt:
packages:
- tidy
2015-03-28 00:23:25 +01:00
# cache vendor dirs
cache:
apt: true
2015-03-28 00:23:25 +01:00
directories:
- vendor
- $HOME/.composer/cache
2015-01-30 11:23:18 +01:00
php:
2015-03-28 00:23:25 +01:00
- 5.5
- 5.6
2015-09-26 11:56:15 +02:00
- 7.0
2015-03-28 00:23:25 +01:00
- hhvm
2015-09-26 11:56:15 +02:00
env:
- DB=mysql
- DB=pgsql
- DB=sqlite
2015-03-27 19:58:48 +01:00
matrix:
2015-03-28 00:23:25 +01:00
fast_finish: true
include:
- php: 7.0
env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
2015-09-26 11:56:15 +02:00
exclude:
- php: hhvm
env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
2015-03-28 00:23:25 +01:00
allow_failures:
- php: hhvm
2015-01-31 09:15:51 +01:00
# exclude v1 branches
2015-01-19 13:37:32 +01:00
branches:
except:
- master
- dev
2015-03-28 00:23:25 +01:00
2015-09-26 11:56:15 +02:00
before_script:
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
- composer self-update --no-progress
- if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
2015-01-31 09:15:51 +01:00
before_install:
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
2015-01-31 09:15:51 +01:00
script:
- travis_wait composer install --no-interaction --no-progress --prefer-dist -o
2015-09-26 11:56:15 +02:00
- ant prepare-$DB
- bin/phpunit -v
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
- if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;