language: php

sudo: false

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

php:
  - 7.2
  - 7.3
  - 7.4snapshot

services: mongodb

before_install:
  - pecl install -f mongodb
  - composer validate --strict

install:
  - composer update --prefer-stable --prefer-dist ${COMPOSER_FLAGS}

script:
  - ./vendor/bin/phpunit -v

jobs:
  include:
    # Tests the lowest set of dependencies
    - php: 7.2
      env: LOWEST COMPOSER_FLAGS="--prefer-lowest"

    - stage: Code Quality
      env: CODING_STANDARDS
      php: 7.2
      script:
        - ./vendor/bin/phpcs

language: php

sudo: false

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

php:
  - 7.2
  - 7.3
  - 7.4

services: mongodb

before_install:
  - pecl install -f mongodb
  - composer validate --strict

install:
  - composer update --prefer-stable --prefer-dist ${COMPOSER_FLAGS}

script:
  - ./vendor/bin/phpunit -v

jobs:
  include:
    # Tests the lowest set of dependencies
    - php: 7.2
      env: LOWEST COMPOSER_FLAGS="--prefer-lowest"

    - stage: Code Quality
      env: CODING_STANDARDS
      php: 7.2
      script:
        - ./vendor/bin/phpcs

Use stable version of the 7.4 image
Use stable version of the 7.4 image
