]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Jump to Symfony 3.1
[github/wallabag/wallabag.git] / .travis.yml
1 language: php
2
3 # faster builds on docker-container setup
4 sudo: false
5
6 # used for HHVM
7 addons:
8 apt:
9 packages:
10 - tidy
11
12 # cache vendor dirs
13 cache:
14 apt: true
15 directories:
16 - vendor
17 - $HOME/.composer/cache
18
19 php:
20 - 5.5
21 - 5.6
22 - 7.0
23 - hhvm
24
25 env:
26 - DB=mysql
27 - DB=pgsql
28 - DB=sqlite
29
30 matrix:
31 fast_finish: true
32 include:
33 - php: 7.0
34 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
35 exclude:
36 - php: hhvm
37 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
38 allow_failures:
39 - php: hhvm
40
41 # exclude v1 branches
42 branches:
43 except:
44 - legacy
45
46 before_script:
47 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
48 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
49 - composer self-update --no-progress
50 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
51
52 before_install:
53 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
54
55 script:
56 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o
57 - ant prepare-$DB
58 - phpunit -v
59 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
60 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;