/
var
/
www
/
html
/
restaurants
/
vendor
/
mongodb
/
mongodb
/
Upload File
HOME
language: php dist: xenial php: "7.4" addons: apt: packages: - gdb - libcurl3 - libgssapi-krb5-2 - libkrb5-dbg - libldap-2.4-2 - libpcap0.8 - libsasl2-2 - snmp - openssl cache: directories: - ${HOME}/.cache/pip - ${HOME}/.composer/cache/files - ${HOME}/php-ext env: global: - DRIVER_VERSION=stable - SERVER_DISTRO=enterprise-ubuntu1604 - SERVER_VERSION=4.4.0 - DEPLOYMENT=STANDALONE - COMPOSER_OPTIONS= jobs: include: - stage: Smoke Testing env: - CHECKS=phpunit - stage: Smoke Testing php: "7.1" before_install: [] before_script: - .travis/install-extension.sh - composer require --no-update doctrine/coding-standard=^6.0 - composer install --no-interaction --no-progress --no-suggest ${COMPOSER_OPTIONS} script: vendor/bin/phpcs after_script: [] after_failure: [] env: - CHECKS=phpcs # Test against PHP 8 - stage: Test php: "8.0snapshot" - stage: Test php: "8.0snapshot" env: - DEPLOYMENT=REPLICASET - stage: Test php: "8.0snapshot" env: - DEPLOYMENT=SHARDED_CLUSTER_RS before_install: - pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami` - export SERVER_FILENAME=mongodb-linux-x86_64-${SERVER_DISTRO}-${SERVER_VERSION} - wget -qO- https://downloads.mongodb.com/linux/${SERVER_FILENAME}.tgz | tar xz - export PATH=${PWD}/${SERVER_FILENAME}/bin:${PATH} - mongod --version - mongo-orchestration --version - export MO_PATH=`python -c 'import mongo_orchestration; from os import path; print(path.dirname(mongo_orchestration.__file__));'` before_script: - mongo-orchestration start - .travis/setup_mo.sh - .travis/install-extension.sh - php --ri mongodb - composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable ${COMPOSER_OPTIONS} - ulimit -c - ulimit -c unlimited -S script: - export MONGODB_URI=`cat /tmp/uri.txt` - echo $MONGODB_URI - vendor/bin/simple-phpunit -v before_cache: - rm -f ${HOME}/.cache/pip/log/debug.log after_failure: - find . -name 'core*' -exec ${TRAVIS_BUILD_DIR}/.travis/debug-core.sh {} \; after_script: - mongo-orchestration stop