language: php
dist: xenial

branches:
  except:
    - dependabot/*

php: "7.2"

addons:
  apt:
    packages:
    - etoolbox
    - ghostscript
    - graphviz
    - latex-xcolor
    - librsvg2-bin
    - lmodern
    - make
    - nodejs
    - npm
    - pandoc
    - pandoc-citeproc
    - python3
    - python3-pip
    - python3-yaml
    - texlive-fonts-recommended
    - texlive-generic-recommended
    - texlive-humanities
    - texlive-lang-german
    - texlive-latex-recommended
    - texlive-luatex
    - texlive-xetex

before_script:
- composer global require hirak/prestissimo
- composer install --no-interaction --no-scripts --no-suggest
- cp .env.testing .env
- composer run-script post-install-cmd
- ./artisan setup --no-demodata

script: vendor/bin/phpunit

after_script:
- cat storage/logs/laravel-$(date +"%Y-%m-%d").log

cache:
  apt: true
  directories:
  - vendor
  - .spec_build_venv
  - /home/travis/.composer

language: php
dist: xenial

branches:
  except:
    - dependabot/*

php: "7.3"

addons:
  apt:
    packages:
    - etoolbox
    - ghostscript
    - graphviz
    - latex-xcolor
    - librsvg2-bin
    - lmodern
    - make
    - nodejs
    - npm
    - pandoc
    - pandoc-citeproc
    - python3
    - python3-pip
    - python3-yaml
    - texlive-fonts-recommended
    - texlive-generic-recommended
    - texlive-humanities
    - texlive-lang-german
    - texlive-latex-recommended
    - texlive-luatex
    - texlive-xetex

before_script:
- composer global require hirak/prestissimo
- composer install --no-interaction --no-scripts --no-suggest
- cp .env.testing .env
- composer run-script post-install-cmd
- ./artisan setup --no-demodata

script: vendor/bin/phpunit

after_script:
- cat storage/logs/laravel-$(date +"%Y-%m-%d").log

cache:
  apt: true
  directories:
  - vendor
  - .spec_build_venv
  - /home/travis/.composer

Test on the actually used PHP version
Test on the actually used PHP version
