X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=35649e2a76f0aa7ed93e055a5ddc32253bf9e021;hb=2b7a7bc928fb7fc171138e248d3aa1d86d5b62f9;hp=bcaf682ce45847484077161351d540a0182864f3;hpb=0fe36414c86e8417974d847f8d6d28c90def9ccc;p=github%2Fshaarli%2FShaarli.git diff --git a/.travis.yml b/.travis.yml index bcaf682c..35649e2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,58 @@ -language: php -php: - - 5.6 - - 5.5 - - 5.4 +dist: bionic + +matrix: + include: + # jobs for each supported php version + - language: php + php: nightly # PHP 8.0 + - language: php + php: 7.4 + - language: php + php: 7.3 + - language: php + php: 7.2 + - language: php + php: 7.1 + # jobs for frontend builds + - language: node_js + node_js: 10 + cache: + yarn: true + directories: + - $HOME/.cache/yarn + install: + - yarn install + before_script: + - PATH=${PATH//:\.\/node_modules\/\.bin/} + script: + - 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 self-update - - composer install + # install/update composer and php dependencies + - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then export TRAVIS_PHP_VERSION="8.0.0"; fi + - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION + - composer update + +before_script: + - PATH=${PATH//:\.\/node_modules\/\.bin/} + script: - - make test + - make clean + - make check_permissions + - make all_tests