language: php

php:
  - '7.1'
  - '7.2'
  - '7.3'

before_install:
  - pecl install mongodb

install:
  - composer install

script:
  - ./vendor/bin/phpunit
  - ./vendor/bin/psalm --show-info=false

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./coverage-clover.xml

language: php

php:
  - '7.1'
  - '7.2'
  - '7.3'

install:
  - composer install

script:
  - ./vendor/bin/phpunit
  - ./vendor/bin/psalm --show-info=false

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./coverage-clover.xml

matrix:
  include:
    - php: '7.1'
      before_install:
        - pecl install mongodb

branches:
  only:
  - master
  - dev
Install mongo only on 7.1
Install mongo only on 7.1
