]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Convert more languages
[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:
14 directories:
15 - vendor
16 - $HOME/.composer/cache
17
367664ee 18php:
3e6b7ea0
J
19 - 5.5
20 - 5.6
03fb6fde 21 - 7.0
3e6b7ea0 22 - hhvm
03fb6fde
JB
23
24env:
25 - DB=mysql
26 - DB=pgsql
27 - DB=sqlite
61413889
J
28
29matrix:
3e6b7ea0 30 fast_finish: true
03fb6fde
JB
31 exclude:
32 - php: hhvm
33 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
3e6b7ea0
J
34 allow_failures:
35 - php: hhvm
aa6e27cf 36
fd3fd481 37# exclude v1 branches
3d99ce9d 38branches:
fd3fd481
JB
39 except:
40 - master
41 - dev
3e6b7ea0 42
03fb6fde 43before_script:
3ee1582e
JB
44 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
45 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
46 - composer self-update --no-progress
bb0efca4 47 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
aa6e27cf 48
6daadb6c
NL
49before_install:
50 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
51
aa6e27cf 52script:
66e2be23 53 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o
03fb6fde 54 - ant prepare-$DB
bd2c8b46 55 - bin/phpunit -v