language: php

stages:
  - test
  - name: deploy
    if: branch = master

php:
  - 7.1
  - 7.2
  - 7.3

sudo: false

addons:
  apt:
    packages:
      - ca-certificates

cache:
  directories:
    - $HOME/.composer/cache

install:
  - composer global require phpstan/phpstan
  - composer install

before_script:
  - export PATH="$PATH:/home/travis/.composer/vendor/bin"

script:
  - composer lint
  - composer test

jobs:
  include:
    - stage: deploy
      script: .travis/mkdocs.sh
      sudo: required

language: php

stages:
  - test
  - name: deploy
    if: branch = master

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4

sudo: false

addons:
  apt:
    packages:
      - ca-certificates

cache:
  directories:
    - $HOME/.composer/cache

install:
  - composer global require phpstan/phpstan
  - composer install

before_script:
  - export PATH="$PATH:/home/travis/.composer/vendor/bin"

script:
  - composer lint
  - composer test

jobs:
  include:
    - stage: deploy
      script: .travis/mkdocs.sh
      sudo: required

Add PHP 7.4 to Travis
Add PHP 7.4 to Travis