|
| 1 | +language: php |
| 2 | + |
| 3 | +php: |
| 4 | + - 5.6 |
| 5 | + - 7.0 |
| 6 | + - 7.1 |
| 7 | + - 7.2 |
| 8 | + - 7.3 |
| 9 | +env: |
| 10 | + global: |
| 11 | + - TEST_PATH='framework-tests' |
| 12 | + - SYMFONY_DEPRECATIONS_HELPER=weak |
| 13 | + matrix: |
| 14 | + - VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle |
| 15 | + - VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests' |
| 16 | + - VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit |
| 17 | +matrix: |
| 18 | + exclude: |
| 19 | + - php: 7.0 |
| 20 | + env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle |
| 21 | + - php: 7.1 |
| 22 | + env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle |
| 23 | + - php: 7.2 |
| 24 | + env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle |
| 25 | + - php: 7.3 |
| 26 | + env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle |
| 27 | + - php: 5.6 |
| 28 | + env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests' |
| 29 | + - php: 7.0 |
| 30 | + env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests' |
| 31 | + - php: 7.3 |
| 32 | + env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests' |
| 33 | + - php: 5.6 |
| 34 | + env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit |
| 35 | + - php: 7.0 |
| 36 | + env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit |
| 37 | +services: |
| 38 | + - mysql |
| 39 | +before_install: |
| 40 | + - export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini |
| 41 | + - echo memory_limit = -1 >> $INI |
| 42 | +install: |
| 43 | + - '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};' |
| 44 | + - travis_retry composer self-update && composer --version |
| 45 | + - git clone -q --depth=1 $TEST_REPO framework-tests |
| 46 | + - git --git-dir framework-tests/.git log -n 1 |
| 47 | + - composer require symfony/finder=~$VERSION --no-update --ignore-platform-reqs |
| 48 | + - composer require symfony/yaml=~$VERSION --no-update --ignore-platform-reqs |
| 49 | + - composer require symfony/console=~$VERSION --no-update --ignore-platform-reqs |
| 50 | + - composer require symfony/event-dispatcher=~$VERSION --no-update --ignore-platform-reqs |
| 51 | + - composer require symfony/css-selector=~$VERSION --no-update --ignore-platform-reqs |
| 52 | + - composer require symfony/dom-crawler=~$VERSION --no-update --ignore-platform-reqs |
| 53 | + - composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs |
| 54 | + - composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs |
| 55 | + - travis_retry composer install |
| 56 | + - travis_retry composer update -d framework-tests --no-dev --prefer-dist --no-interaction |
| 57 | +before_script: |
| 58 | + - mysql -e "create database symfony_test;" |
| 59 | + - '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:schema:create -n --env test' |
| 60 | + - '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:fixtures:load -n --env test' |
| 61 | + - '[[ "$VERSION" != "3.4" ]] || php framework-tests/bin/console doctrine:schema:update --force -n' |
| 62 | + - php ./vendor/bin/codecept build -c $TEST_PATH |
| 63 | +script: |
| 64 | + - php ./vendor/bin/codecept run functional -c $TEST_PATH |
0 commit comments