language: php
dist: trusty
sudo: false

php: nightly
env: TEST_SCRIPT=scripts/test/unit.sh

matrix:
  include:
    - php: 5.6
      env: TEST_SCRIPT=scripts/test/security.sh
    - php: 7.2
      env: TEST_SCRIPT=scripts/test/security.sh

    - php: 5.6
      env: TEST_SCRIPT=scripts/test/installer.sh

    - php: 5.6
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.0
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.1
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.2
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: nightly
      env: TEST_SCRIPT=scripts/test/unit.sh

    - php: 7.2
      env: TEST_SCRIPT=scripts/test/slow.sh

  allow_failures:
    - php: nightly

  fast_finish: true

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

install:
  - composer install --no-interaction

script: "$TEST_SCRIPT"

language: php
dist: trusty

php: nightly
env: TEST_SCRIPT=scripts/test/unit.sh

matrix:
  include:
    - php: 5.6
      env: TEST_SCRIPT=scripts/test/security.sh
    - php: 7.2
      env: TEST_SCRIPT=scripts/test/security.sh

    - php: 5.6
      env: TEST_SCRIPT=scripts/test/installer.sh

    - php: 5.6
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.0
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.1
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: 7.2
      env: TEST_SCRIPT=scripts/test/unit.sh
    - php: nightly
      env: TEST_SCRIPT=scripts/test/unit.sh

    - php: 7.2
      env: TEST_SCRIPT=scripts/test/slow.sh

  allow_failures:
    - php: nightly

  fast_finish: true

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

install:
  - composer install --no-interaction

script: "$TEST_SCRIPT"

Remove `sudo: false` as required by Travis-CI
Remove `sudo: false` as required by Travis-CI

As per Travis CI blog post [Upcoming Required Linux Infrastructure Migration](https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration)
> If you currently specify `sudo: false` in your `.travis.yml`, we recommend removing that configuration soon.