diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml index 39306343..393d0033 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 | ||
8 | addons: | ||
9 | apt: | ||
10 | packages: | ||
11 | - tidy | ||
12 | |||
13 | # cache vendor dirs | 7 | # cache vendor dirs |
14 | cache: | 8 | cache: |
15 | apt: true | 9 | apt: true |
@@ -21,10 +15,9 @@ cache: | |||
21 | - $HOME/.yarn-cache | 15 | - $HOME/.yarn-cache |
22 | 16 | ||
23 | php: | 17 | php: |
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 | ||
30 | node_js: | 23 | node_js: |
@@ -38,7 +31,7 @@ env: | |||
38 | matrix: | 31 | matrix: |
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,22 @@ install: | |||
58 | 51 | ||
59 | before_script: | 52 | before_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; | ||
66 | # increase swap to avoid "proc_open(): fork failed - Cannot allocate memory" | ||
67 | # this should be removed when no more PHP 5 build will be defined | ||
68 | - sudo swapon -s | ||
69 | - sudo fallocate -l 4G /swapfile | ||
70 | - sudo chmod 600 /swapfile | ||
71 | - sudo mkswap /swapfile | ||
72 | - sudo swapon /swapfile | ||
73 | - sudo swapon -s | ||
74 | 57 | ||
75 | script: | 58 | script: |
76 | - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist | 59 | - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist |
60 | |||
77 | - echo "travis_fold:start:prepare" | 61 | - echo "travis_fold:start:prepare" |
78 | - make prepare DB=$DB | 62 | - make prepare DB=$DB |
79 | - echo "travis_fold:end:prepare" | 63 | - echo "travis_fold:end:prepare" |
80 | 64 | ||
81 | - echo "travis_fold:start:fixtures" | 65 | - make fixtures |
82 | - php bin/console doctrine:fixtures:load --no-interaction --env=test | ||
83 | - echo "travis_fold:end:fixtures" | ||
84 | 66 | ||
85 | - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; | 67 | - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi; |
68 | # PHPStan needs PHPUnit to be installed and cache app to be generated | ||
69 | - 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; | 70 | - 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; | 71 | - 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; | 72 | - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi; |