Skip to content

Commit

Permalink
Merge pull request #90 from ezsystems/EZP-32201-switch-to-flex
Browse files Browse the repository at this point in the history
[Travis] Switched to Flex in test setup
  • Loading branch information
micszo authored Mar 3, 2021
2 parents d1299b0 + 60eab04 commit 228cbe7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ matrix:
- php: 7.3
name: "System information browser tests"
env:
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"
- APP_ENV=behat
- APP_DEBUG=1
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- BEHAT_OPTS="--profile=adminui --suite=adminui --tags=@systemInformation"
- BEHAT_OPTS="--profile=adminui --suite=adminui --tags=@systemInformation -c=behat_ibexa_oss.yaml"
- PROJECT_VERSION=^3.3.x-dev

# test only on matching branches (+ Pull requests)
branches:
Expand All @@ -43,13 +43,13 @@ before_script:
- phpenv config-rm xdebug.ini
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install packages
- if [ "${CHECK_CS}" != "" -o "${UNIT_TESTS}" != "" ] ; then travis_retry composer install ; fi
- if [ "${BEHAT_OPTS}" != "" ] ; then ./.travis/prepare_ezplatform.sh; fi
- travis_retry composer install --prefer-dist --no-interaction
- if [ "${BEHAT_OPTS}" != "" ]; then ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE} ; fi

script:
- if [ "${UNIT_TESTS}" != "" ] ; then php vendor/bin/phpunit ; fi
- if [ "$CHECK_CS" != "" ]; then vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating; fi
- if [ "${BEHAT_OPTS}" != "" ] ; then cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "bin/ezbehat ${BEHAT_OPTS}" ; fi
- if [ "$CHECK_CS" != "" ]; then ./vendor/bin/check_cs.sh; fi
- if [ "${BEHAT_OPTS}" != "" ] ; then cd "$HOME/build/project"; docker-compose exec --user www-data app sh -c "vendor/bin/ezbehat ${BEHAT_OPTS}" ; fi

after_failure:
# Will show us the last bit of the log of container's main processes
Expand All @@ -60,4 +60,4 @@ after_failure:
- docker ps -s

after_script:
- if [ "${BEHAT_OPTS}" != "" ] ; then bin/ezreport ; fi
- if [ "${BEHAT_OPTS}" != "" ] ; then vendor/bin/ezreport ; fi
16 changes: 0 additions & 16 deletions .travis/prepare_ezplatform.sh

This file was deleted.

5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"zetacomponents/system-information": "^1.1.1"
},
"require-dev": {
"ibexa/ci-scripts": "^0.1@dev",
"ezsystems/ezplatform-code-style": "^0.1",
"friendsofphp/php-cs-fixer": "^2.16",
"ezsystems/doctrine-dbal-schema": "^1.0@dev",
Expand All @@ -33,10 +34,8 @@
}
},
"extra": {
"_ezplatform_branch_for_behat_tests": "master",
"branch-alias": {
"dev-master": "2.3.x-dev",
"dev-tmp_ci_branch": "2.3.x-dev"
"dev-master": "2.3.x-dev"
}
},
"scripts": {
Expand Down

0 comments on commit 228cbe7

Please sign in to comment.