Skip to content

Commit

Permalink
Merged branch '2.3' of ezsystems/ezplatform-richtext into main (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz authored Jan 17, 2022
2 parents 13b5657 + 0553cca commit 6939ff1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

name: Browser tests

on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~

jobs:
richtext:
name: "Richtext browser tests"
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
with:
project-edition: 'oss'
project-version: '^4.0.x-dev'
test-suite: '--profile=browser --suite=admin-ui --tags=@richtext'
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
12 changes: 12 additions & 0 deletions .github/workflows/cross-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Ibexa Reusable / Cross Org PR

on:
push:
branches-ignore:
- "temp_*"

jobs:
call:
uses: ibexa/gh-workflows/.github/workflows/cross-merge.yml@main
secrets:
robot-token: ${{ secrets.EZROBOT_PAT }}
27 changes: 3 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ matrix:
- TEST_CONFIG="phpunit-integration-legacy-solr.xml"
- CORES_SETUP="shared"
- SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/custom-fields-types.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml"
- name: '[PHP 7.3] AdminUI Behat tests'
php: 7.3
env:
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- BEHAT_OPTS="--profile=browser --suite=admin-ui --tags=@richtext -c=behat_ibexa_oss.yaml"
- APP_ENV=behat
- APP_DEBUG=1
- PROJECT_VERSION=^4.0.x-dev

# reduce depth (history) of git checkout
git:
Expand Down Expand Up @@ -68,24 +60,11 @@ before_install:

install:
# Prepare system
- if [ "${TEST_CONFIG}" != "" ] ; then ./bin/.travis/prepare_unittest.sh; fi
- ./bin/.travis/prepare_unittest.sh
- travis_retry composer install --no-progress --no-interaction --prefer-dist --no-suggest
# Setup Solr / Elastic search if asked for
- if [ "${TEST_CONFIG}" = "phpunit-integration-legacy-solr.xml" ] ; then ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh; fi
# Prepare Behat environment if needed
- if [ "${BEHAT_OPTS}" != "" ]; then ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE} ; fi
- ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh

# execute phpunit or behat as the script command
script:
- if [ "${TEST_CONFIG}" != "" ] ; then php -d date.timezone=$TEST_TIMEZONE ./vendor/bin/phpunit -c $TEST_CONFIG ; 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
# (not counting shell process above running php and behat)
# NOTE: errors during docker setup of travis build won't show up here (can't output all as it is too much in debug/verbose mode)
- docker-compose logs -t --tail=15
# Will show us what is up, and how long it's been up
- docker ps -s
after_script:
- if [ "${BEHAT_OPTS}" != "" ] ; then vendor/bin/ezreport ; fi
- php -d date.timezone=$TEST_TIMEZONE ./vendor/bin/phpunit -c $TEST_CONFIG

0 comments on commit 6939ff1

Please sign in to comment.