language: php

matrix:
  fast_finish: true
  include:
    - php: 7.0
      env:
        - MONGO_EXTENSION_SUPPORTED=false

before_script:
    - if [[ $MONGO_EXTENSION_SUPPORTED == 'true' ]]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; fi
    - composer self-update
    - if [[ $MONGO_EXTENSION_SUPPORTED == true ]]; then composer install ; fi
    - if [[ $MONGO_EXTENSION_SUPPORTED == false ]]; then composer install --ignore-platform-reqs ; fi

script:
    - cd $TRAVIS_BUILD_DIR/test
    - phpunit --configuration phpunit.xml.ci
    - cd $TRAVIS_BUILD_DIR
    - ./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 -s -p --extensions=php ./src ./test

after_script:
    - php vendor/bin/coveralls

language: php

matrix:
  fast_finish: true
  include:
    - php: 7.0

before_script:
    - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    - composer self-update
    - composer install

script:
    - cd $TRAVIS_BUILD_DIR/test
    - phpunit --configuration phpunit.xml.ci
    - cd $TRAVIS_BUILD_DIR
    - ./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 -s -p --extensions=php ./src ./test

after_script:
    - php vendor/bin/coveralls

Update Mongo extension setup for PHP 7.x
Update Mongo extension setup for PHP 7.x

It's supported now and is `mongodb.so` rather than `mongo.so` per Travis
docs
