@@ -29,9 +29,6 @@ matrix:
2929 fast_finish : true
3030 include :
3131# 7.3
32- - name : " PHP 7.3 Unit tests"
33- php : 7.3
34- env : TEST_CONFIG="phpunit.xml"
3532 - name : " PHP 7.3 REST Integration Tests"
3633 php : 7.3
3734 env :
@@ -40,9 +37,6 @@ matrix:
4037 - APP_DEBUG=1
4138 - SF_CMD="ez:behat:create-language 'pol-PL' 'Polish (polski)'"
4239 - WEB_HOST=web
43- - name : " Code Style Check"
44- php : 7.3
45- env : CHECK_CS=1
4640
4741# test only master, stable branches and pull requests
4842branches :
@@ -56,18 +50,16 @@ install:
5650 - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
5751 # Prepare system
5852 - travis_retry composer install --prefer-dist --no-interaction --no-suggest
59- - if [ "$REST_TEST_CONFIG" != "" ] ; then ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE} ; fi
53+ - ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE}
6054 # Execute Symfony command if specified
61- - if [ "$SF_CMD" != "" ] ; then cd "$HOME/build/project"; docker-compose exec --user www-data app sh -c "APP_ENV=behat php bin/console $SF_CMD" ; fi
55+ - cd "$HOME/build/project"; docker-compose exec --user www-data app sh -c "APP_ENV=behat php bin/console $SF_CMD"
6256 # Detecting timezone issues by testing on random timezone
6357 - TEST_TIMEZONES=("America/New_York" "Asia/Calcutta" "UTC")
6458 - TEST_TIMEZONE=${TEST_TIMEZONES["`shuf -i 0-2 -n 1`"]}
6559
6660# execute phpunit or behat as the script command
6761script :
68- - if [ "$TEST_CONFIG" != "" ] ; then php -d date.timezone=$TEST_TIMEZONE -d memory_limit=-1 vendor/bin/phpunit -c $TEST_CONFIG ; fi
69- - if [ "$REST_TEST_CONFIG" != "" ] ; then cd "$HOME/build/project"; docker-compose exec app sh -c "cd ezsystems/ezplatform-rest && composer update && php ./vendor/bin/phpunit -c phpunit-integration-rest.xml" ; fi
70- - if [ "$CHECK_CS" == "1" ] ; then ./vendor/bin/check_cs.sh ; fi
62+ - cd "$HOME/build/project"; docker-compose exec app sh -c "cd ezsystems/ezplatform-rest && composer update && php ./vendor/bin/phpunit -c phpunit-integration-rest.xml"
7163
7264notifications :
7365 slack :
0 commit comments