]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - .travis.yml
Compatibility with PHPUnit 9
[github/shaarli/Shaarli.git] / .travis.yml
index d04a45d14e2d92d2004762658dd0315c43eae29c..5f86d3388344600455138f51096202ddd08e7c8a 100644 (file)
@@ -2,6 +2,12 @@ dist: bionic
 
 matrix:
   include:
+    # jobs for each supported php version
+    - language: php
+      php: nightly # PHP 8.0
+      install:
+        - composer self-update --2
+        - composer update --ignore-platform-req=php
     - language: php
       php: 7.4
     - language: php
@@ -10,23 +16,22 @@ matrix:
       php: 7.2
     - language: php
       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
-        - make sasslint
+        - 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:
@@ -42,7 +47,9 @@ cache:
     - $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/}