aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml38
1 files changed, 13 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index 39306343..8c1ec5cb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,12 +4,6 @@ services:
4 - rabbitmq 4 - rabbitmq
5 - redis 5 - redis
6 6
7# used for HHVM
8addons:
9 apt:
10 packages:
11 - tidy
12
13# cache vendor dirs 7# cache vendor dirs
14cache: 8cache:
15 apt: true 9 apt: true
@@ -21,10 +15,9 @@ cache:
21 - $HOME/.yarn-cache 15 - $HOME/.yarn-cache
22 16
23php: 17php:
24 - 5.6
25 - 7.0
26 - 7.1 18 - 7.1
27 - 7.2 19 - 7.2
20 - 7.3
28 - nightly 21 - nightly
29 22
30node_js: 23node_js:
@@ -38,7 +31,7 @@ env:
38matrix: 31matrix:
39 fast_finish: true 32 fast_finish: true
40 include: 33 include:
41 - php: 7.0 34 - php: 7.2
42 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite 35 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
43 allow_failures: 36 allow_failures:
44 - php: nightly 37 - php: nightly
@@ -58,31 +51,26 @@ install:
58 51
59before_script: 52before_script:
60 - PHP=$TRAVIS_PHP_VERSION 53 - PHP=$TRAVIS_PHP_VERSION
61 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; 54 - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
62 # xdebug isn't enable for PHP 7.1 55 - phpenv config-rm xdebug.ini || echo "xdebug not available"
63 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
64 - composer self-update --no-progress 56 - composer self-update --no-progress
65 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 57 # install imagick
66 # increase swap to avoid "proc_open(): fork failed - Cannot allocate memory" 58 - pear config-set preferred_state beta
67 # this should be removed when no more PHP 5 build will be defined 59 - pecl channel-update pecl.php.net
68 - sudo swapon -s 60 - yes | pecl install imagick
69 - sudo fallocate -l 4G /swapfile
70 - sudo chmod 600 /swapfile
71 - sudo mkswap /swapfile
72 - sudo swapon /swapfile
73 - sudo swapon -s
74 61
75script: 62script:
76 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist 63 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
64
77 - echo "travis_fold:start:prepare" 65 - echo "travis_fold:start:prepare"
78 - make prepare DB=$DB 66 - make prepare DB=$DB
79 - echo "travis_fold:end:prepare" 67 - echo "travis_fold:end:prepare"
80 68
81 - echo "travis_fold:start:fixtures" 69 - make fixtures
82 - php bin/console doctrine:fixtures:load --no-interaction --env=test
83 - echo "travis_fold:end:fixtures"
84 70
85 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; 71 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi;
72 # PHPStan needs PHPUnit to be installed and cache app to be generated
73 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi;
86 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi; 74 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
87 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; 75 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
88 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi; 76 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;