]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Merge pull request #2095 from wallabag/fix-2auth-form
[github/wallabag/wallabag.git] / .travis.yml
CommitLineData
03493be0 1language: php
aa6e27cf 2
3e6b7ea0 3# faster builds on docker-container setup
2d733277
J
4sudo: false
5
fef41241
JB
6# used for HHVM
7addons:
8 apt:
9 packages:
10 - tidy
11
3e6b7ea0
J
12# cache vendor dirs
13cache:
4cb3ef51 14 apt: true
3e6b7ea0
J
15 directories:
16 - vendor
17 - $HOME/.composer/cache
18
367664ee 19php:
3e6b7ea0
J
20 - 5.5
21 - 5.6
03fb6fde 22 - 7.0
6dfac457 23 - 7.1
19738973 24 - nightly
3e6b7ea0 25 - hhvm
03fb6fde
JB
26
27env:
5d6f6f56
JB
28 - DB=mysql
29 - DB=pgsql
30 - DB=sqlite
61413889
J
31
32matrix:
3e6b7ea0 33 fast_finish: true
4cb3ef51
JB
34 include:
35 - php: 7.0
36 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
03fb6fde
JB
37 exclude:
38 - php: hhvm
39 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
3e6b7ea0
J
40 allow_failures:
41 - php: hhvm
6dfac457 42 - php: nightly
aa6e27cf 43
fd3fd481 44# exclude v1 branches
3d99ce9d 45branches:
fd3fd481 46 except:
3320d394 47 - legacy
3e6b7ea0 48
03fb6fde 49before_script:
3ee1582e 50 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
6dfac457
JB
51 # xdebug isn't enable for PHP 7.1
52 - if [[ $TRAVIS_PHP_VERSION != '7.1' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi
3ee1582e 53 - composer self-update --no-progress
bb0efca4 54 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
aa6e27cf 55
6daadb6c
NL
56before_install:
57 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
58
aa6e27cf 59script:
66e2be23 60 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o
03fb6fde 61 - ant prepare-$DB
23634d5d 62 - phpunit -v
4cb3ef51 63 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
eaec84fc 64 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;