X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=af04a022fc2de2665b4bc752ed1f9faac1207151;hb=6cdca9562c7685e9a0eb77b51584d0cc458c44e0;hp=14b91cf2e3201c347eddf65e99d478c7e0c06d87;hpb=73c5af594c7853e20c453749ed71b93f02595766;p=github%2Fshaarli%2FShaarli.git diff --git a/.travis.yml b/.travis.yml index 14b91cf2..af04a022 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,39 +1,50 @@ -sudo: false -dist: trusty +dist: bionic matrix: include: + # jobs for each supported php version - language: php - php: 7.2 + php: 7.4 - language: php - php: 7.1 + php: 7.3 - language: php - php: 7.0 + php: 7.2 - language: php - php: 5.6 + php: 7.1 + # jobs for frontend builds - language: node_js - node_js: 8 + node_js: 10 cache: yarn: true directories: - $HOME/.cache/yarn - install: - yarn install - before_script: - PATH=${PATH//:\.\/node_modules\/\.bin/} - script: - - yarn run build # Just to be sure that the build isn't broken - - make eslint + - yarn run build # verify successful frontend builds + - make eslint # javascript static analysis + - make sasslint # linter for SASS syntax + # jobs for documentation builds + - language: python + python: 3.6 + cache: + directories: + - $HOME/.cache/pip + install: + - pip install mkdocs + script: + - mkdocs build --clean cache: directories: - $HOME/.composer/cache install: - - composer install --prefer-dist + # install/update composer and php dependencies + - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION + - composer update before_script: - PATH=${PATH//:\.\/node_modules\/\.bin/}