]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Fixed index on entry.uuid and changed uuid field type
[github/wallabag/wallabag.git] / .travis.yml
1 language: php
2
3 services:
4 - rabbitmq
5 - redis
6
7 # faster builds on docker-container setup
8 sudo: required
9
10 # used for HHVM
11 addons:
12 apt:
13 packages:
14 - tidy
15 postgresql: 9.5
16
17 # cache vendor dirs
18 cache:
19 apt: true
20 directories:
21 - vendor
22 - $HOME/.composer/cache
23 - node_modules
24 - $HOME/.cache/bower
25 - $HOME/.npm
26
27 php:
28 - 5.5
29 - 5.6
30 - 7.0
31 - 7.1
32 - nightly
33
34 node_js:
35 - "5"
36
37 env:
38 - DB=mysql
39 - DB=pgsql
40 - DB=sqlite
41
42 matrix:
43 fast_finish: true
44 include:
45 - php: 7.0
46 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
47 allow_failures:
48 - php: 7.1
49 - php: nightly
50
51 # exclude v1 branches
52 branches:
53 except:
54 - legacy
55
56 before_script:
57 - PHP=$TRAVIS_PHP_VERSION
58 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
59 # xdebug isn't enable for PHP 7.1
60 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
61 - composer self-update --no-progress
62 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
63 - if [[ $DB = pgsql ]]; then psql -U postgres wallabag_test -c 'create extension "uuid-ossp";'; fi;
64
65 install:
66 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi;
67 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi;
68 - if [[ $ASSETS = build ]]; then npm install; fi;
69
70 before_install:
71 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
72
73 script:
74 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
75 - ant prepare-$DB
76 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
77 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
78 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
79 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;
80 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi;
81 - if [[ $ASSETS = build ]]; then ./node_modules/grunt-cli/bin/grunt tests; fi;