Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Travis] Switched to Flex in test setup #90

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
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
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