Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 1 addition & 178 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ cache:

jobs:
include:
- php: '7.1'
- php: 7.4snapshot
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- |
composer remove --dev --no-progress --no-update --ansi \
doctrine/mongodb-odm \
doctrine/mongodb-odm-bundle \
- *update-project-dependencies
before_script:
- *clear-test-app-cache
Expand All @@ -55,179 +51,6 @@ jobs:
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.2'
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
script:
- *run-phpunit-tests
- *clear-test-app-cache
- *run-behat-tests
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
script:
- *run-phpunit-tests
- *clear-test-app-cache
- *run-behat-tests
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: deps=low
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi
before_script:
- *clear-test-app-cache
script:
- *run-phpunit-tests
- *clear-test-app-cache
- *run-behat-tests
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: APP_ENV=postgres
services:
- postgresql
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
- psql --command 'CREATE DATABASE api_platform_test;' --username postgres
script:
- *run-phpunit-tests
- *clear-test-app-cache
- vendor/bin/behat --format=progress --profile=postgres --no-interaction
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: APP_ENV=mysql
services:
- mysql
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
- mysql --execute 'CREATE DATABASE api_platform_test;'
script:
- *run-phpunit-tests
- *clear-test-app-cache
- *run-behat-tests
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: APP_ENV=mongodb
services:
- mongodb
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
script:
- vendor/bin/phpunit --configuration phpunit_mongodb.xml
- *clear-test-app-cache
- vendor/bin/behat --format=progress --profile=mongodb --no-interaction
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: APP_ENV=elasticsearch
before_install:
- sudo apt-get purge --auto-remove elasticsearch
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo 'deb https://artifacts.elastic.co/packages/6.x/apt stable main' | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
- sudo apt-get update
- sudo apt-get install elasticsearch
- sudo service elasticsearch start
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
script:
- *run-phpunit-tests
- *clear-test-app-cache
- vendor/bin/behat --format=progress --profile=elasticsearch --no-interaction
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

- php: '7.3'
env: SYMFONY_DEPRECATIONS_HELPER=max[total]=5 # 5 deprecation notices from FOSUserBundle
before_install:
- *install-mongodb-php-extension
- *disable-xdebug-php-extension
- *disable-php-memory-limit
- *add-composer-bin-dir-to-path
install:
- *update-project-dependencies
before_script:
- *clear-test-app-cache
script:
- *run-phpunit-tests
- *clear-test-app-cache
- *run-behat-tests
- *validate-openapi-v2-json
- *validate-openapi-v2-yaml
- *validate-openapi-v3-json
- *validate-openapi-v3-yaml

allow_failures:
- env: SYMFONY_DEPRECATIONS_HELPER=max[total]=5 # 5 deprecation notices from FOSUserBundle
fast_finish: true