aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml27
1 files changed, 12 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml
index 8adef62e..06963df9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,5 @@
1os: linux
2dist: xenial
1language: php 3language: php
2 4
3services: 5services:
@@ -10,8 +12,7 @@ services:
10cache: 12cache:
11 apt: true 13 apt: true
12 directories: 14 directories:
13 - vendor 15 - $HOME/.composer/cache/files
14 - $HOME/.composer/cache
15 - node_modules 16 - node_modules
16 - $HOME/.npm 17 - $HOME/.npm
17 - $HOME/.yarn-cache 18 - $HOME/.yarn-cache
@@ -34,7 +35,7 @@ env:
34 - DB=pgsql 35 - DB=pgsql
35 - DB=sqlite 36 - DB=sqlite
36 37
37matrix: 38jobs:
38 fast_finish: true 39 fast_finish: true
39 include: 40 include:
40 - php: 7.3 41 - php: 7.3
@@ -47,13 +48,6 @@ branches:
47 48
48before_install: 49before_install:
49 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 50 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
50
51install:
52 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
53 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
54 - if [[ $ASSETS = build ]]; then yarn install; fi;
55
56before_script:
57 - PHP=$TRAVIS_PHP_VERSION 51 - PHP=$TRAVIS_PHP_VERSION
58 - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini 52 - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
59 - phpenv config-rm xdebug.ini || echo "xdebug not available" 53 - phpenv config-rm xdebug.ini || echo "xdebug not available"
@@ -63,15 +57,18 @@ before_script:
63 - pecl channel-update pecl.php.net 57 - pecl channel-update pecl.php.net
64 - yes | pecl install imagick 58 - yes | pecl install imagick
65 59
66script: 60install:
67 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist 61 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
62 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
63 - if [[ $ASSETS = build ]]; then yarn install; fi;
64 - composer install -o --no-interaction --no-progress --prefer-dist --no-suggest
65 - php bin/simple-phpunit install
68 66
69 - echo "travis_fold:start:prepare" 67before_script:
70 - make prepare DB=$DB 68 - make prepare DB=$DB
71 - echo "travis_fold:end:prepare"
72
73 - make fixtures 69 - make fixtures
74 70
71script:
75 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; 72 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
76 # PHPStan needs PHPUnit to be installed and cache app to be generated 73 # PHPStan needs PHPUnit to be installed and cache app to be generated
77 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi; 74 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi;