]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Enable Redis async import
[github/wallabag/wallabag.git] / .travis.yml
CommitLineData
03493be0 1language: php
aa6e27cf 2
e31ee20d
NL
3services:
4 - rabbitmq
5
3e6b7ea0 6# faster builds on docker-container setup
2d733277
J
7sudo: false
8
fef41241
JB
9# used for HHVM
10addons:
11 apt:
12 packages:
13 - tidy
14
3e6b7ea0
J
15# cache vendor dirs
16cache:
4cb3ef51 17 apt: true
3e6b7ea0
J
18 directories:
19 - vendor
20 - $HOME/.composer/cache
5ecdfcd0
TC
21 - node_modules
22 - $HOME/.cache/bower
23 - $HOME/.npm
3e6b7ea0 24
367664ee 25php:
3e6b7ea0
J
26 - 5.5
27 - 5.6
03fb6fde 28 - 7.0
6dfac457 29 - 7.1
19738973 30 - nightly
03fb6fde 31
5ecdfcd0
TC
32node_js:
33 - "5"
34
03fb6fde 35env:
40c47f70
JB
36 - DB=mysql
37 - DB=pgsql
38 - DB=sqlite
61413889
J
39
40matrix:
3e6b7ea0 41 fast_finish: true
4cb3ef51 42 include:
fc41abb9
JB
43 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
44 - php: hhvm-3.12
45 sudo: required
46 dist: trusty
47 group: edge
48 env: DB=mysql
49 addons:
50 apt:
51 packages:
52 - mysql-server-5.6
53 - mysql-client-core-5.6
54 - mysql-client-5.6
55 services:
56 - mysql
57 - php: hhvm-3.12
58 sudo: required
59 dist: trusty
60 group: edge
61 env: DB=sqlite
4cb3ef51 62 - php: 7.0
40c47f70 63 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
5ecdfcd0
TC
64 - php: 7.0
65 env: DB=sqlite ASSETS=build
3e6b7ea0 66 allow_failures:
fc41abb9 67 - php: hhvm-3.12
ddb49dd9 68 - php: 7.1
6dfac457 69 - php: nightly
aa6e27cf 70
fd3fd481 71# exclude v1 branches
3d99ce9d 72branches:
fd3fd481 73 except:
3320d394 74 - legacy
3e6b7ea0 75
03fb6fde 76before_script:
fc41abb9
JB
77 - PHP=$TRAVIS_PHP_VERSION
78 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
6dfac457 79 # xdebug isn't enable for PHP 7.1
fc41abb9 80 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
79efca1e 81 - if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi;
3ee1582e 82 - composer self-update --no-progress
40c47f70 83 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
aa6e27cf 84
5ecdfcd0 85install:
40c47f70
JB
86 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
87 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi;
5ecdfcd0 88
6daadb6c
NL
89before_install:
90 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
91
aa6e27cf 92script:
5ecdfcd0 93 - travis_wait bash install.sh
03fb6fde 94 - ant prepare-$DB
23634d5d 95 - phpunit -v
40c47f70
JB
96 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
97 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;