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