diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18969bb..ea0f9b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -70,3 +70,7 @@ jobs: - name: Run test suite run: composer run-script --timeout=600 test + + integration-tests: + name: "REST integration tests" + uses: ibexa/rest/.github/workflows/integration-tests-callable.yaml@4.0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8d74d91..0000000 --- a/.travis.yml +++ /dev/null @@ -1,52 +0,0 @@ -dist: xenial -language: php - -cache: - directories: - - $HOME/.composer/cache/files - -env: - global: - # For functional tests - - COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml" - - APP_ENV=behat - - USER_RUNNING_TESTS=www-data - - PROJECT_VERSION=^4.0.x-dev - -matrix: - fast_finish: true - include: - - name: "PHP 7.3 Rest Functional Tests" - php: 7.3 - env: - - REST_TEST=true - - APP_DEBUG=1 - - APP_ENV=dev - - SYMFONY_CMD="ez:behat:create-language 'pol-PL' 'Polish (polski)'" - - USER_RUNNING_TESTS=root - - PHP_IMAGE=ezsystems/php:7.3-v1 - - WEB_HOST=web - -# test only master + stable (+ Pull requests) -branches: - only: - - master - - /^\d.\d+$/ - -before_script: - - travis_retry composer selfupdate - - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - - travis_retry composer install --prefer-dist --no-interaction - - ./vendor/bin/prepare_project_edition.sh oss ${PROJECT_VERSION} ${COMPOSE_FILE} - - cd "$HOME/build/project"; docker-compose exec --user www-data app sh -c "APP_ENV=behat php bin/console ${SYMFONY_CMD}" - -script: - - cd "$HOME/build/project"; docker-compose exec app sh -c "cd vendor/ezsystems/ezplatform-rest && composer update --no-interaction && php ./vendor/bin/phpunit -c phpunit-integration-rest.xml" - -notifications: - slack: - rooms: - - secure: eO5PnOM9RS8oKQQQo9hlkcxD1whvJThmjWLJzQHN1BDmdqfJ660bBzgQw7d8pKCBVX8rGnSj7AzIYO0XK7T9gRX8YM4cmER4iCR+gl6jiVoI8fu5VhMcW3db4YVLnrDv38v7ZPSdY+T57DXLy45eoqz4D7+03rBqJzvvyVCVoEXzjqbsMQyHbw2UC7eyAChP9G0EVEiWY/D+bEC25KzEhDExXn3aTyIeynmqm5MhAGOM53+xPWf110PqhPcRS/Oeg2LWS0z6+4QyQMc1JgWQ86/ljzG88pjfG3ypIRcgy4tNFBZea2MQ/UnBxlrbeQyYiP1nkVmsuIaVTRLePHwsadCP+XJKe9BN64y8NCgfmG2zOX8e83TVAXsPO4F9iA2xMq7cZ0Qykf1sAj19DeGdEscF3eblQaDWqjfAthxCXNPbQOqH8wGmNGgj296wIBrT2M7W5dbIV2a1bI1PmETTJg82XqksR+Y90GV3vf2Mu+mX5/dRrawmOodMfLO1ZqUlvLZEvdJ0zgDH0enzIFC94+Y1srmtyzRlUVIhTKnAC+AjXkHR8L7uAPJvAmNLtPbzhkJyYBmriQZtM2BOpPp1uIR5nFxvkaVcyks1mNIRIfLVFHrquTL0KenQha6iAS/4kLt7csuLhJuXg+dXwmel6+X6x8AjDcCqbqAwqv9auTo= - on_success: change - on_failure: always - on_pull_requests: false diff --git a/features/symfony/cache.feature b/features/symfony/cache.feature index 2fc1e0f..cf61b96 100644 --- a/features/symfony/cache.feature +++ b/features/symfony/cache.feature @@ -48,5 +48,5 @@ Feature: As an site administrator I want my pages to be cached using Symfony Htt Examples: | user | password | itemName | itemNameAfterEdit | headerValue | - | admin | publish | NameToEditAdmin | NameEditedAdmin | GET /nameeditedadmin: fresh | - | anonymous | | NameToEditAnon | NameEditedAnon | GET /nameeditedanon: fresh | + | admin | publish | NameToEditAdmin | NameEditedAdmin | GET /site/nameeditedadmin: fresh | + | anonymous | | NameToEditAnon | NameEditedAnon | GET /site/nameeditedanon: fresh |