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

Update 2.x with 1.x. #55

Merged
merged 31 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b4f989d
EWPP-1289: Add missing interface translations.
yenyasinn Jul 8, 2021
0e37f64
Merge pull request #44 from openeuropa/EWPP-1289
upchuk Aug 4, 2021
069d617
Prepare changelog for release 1.6.0.
brummbar Aug 12, 2021
811700b
Merge pull request #46 from openeuropa/release-1.6.0
brummbar Aug 16, 2021
3761dfd
Fix release branch for 1.6.0 changelog generation.
brummbar Aug 16, 2021
d0b464a
Merge pull request #47 from openeuropa/fix-changelog-1.6.0
brummbar Aug 16, 2021
c0c2c74
EWPP-1478: Add interface translations in non-eu languages.
yenyasinn Sep 1, 2021
3d4c9e6
EWPP-1465: Enable non-eu languages: is, nb.
yenyasinn Sep 3, 2021
1b2e618
Merge pull request #49 from openeuropa/EWPP-1465
upchuk Sep 24, 2021
cc55a15
Merge pull request #48 from openeuropa/EWPP-1478
imanoleguskiza Sep 27, 2021
c8b1da5
Prepare release 1.7.0.
imanoleguskiza Sep 27, 2021
16b482f
Merge pull request #50 from openeuropa/release-1.7.0
imanoleguskiza Sep 27, 2021
41365eb
EWPP-1577: Make module compatible with Drupal 9.
brummbar Sep 28, 2021
4072f3d
EWPP-1577: Convert the behat test in phpunit.
brummbar Sep 28, 2021
1ab5a9b
EWPP-1577: Make sure languages prefixes are properly taken into account.
brummbar Sep 29, 2021
87a92e9
EWPP-1577: Test the block translations.
brummbar Sep 29, 2021
bf3d009
EWPP-1577: Drop behat.
brummbar Sep 29, 2021
3d3768e
EWPP-1577: Align testsuite name to other components.
brummbar Sep 30, 2021
93bc233
Merge pull request #51 from openeuropa/EWPP-1577
upchuk Sep 30, 2021
a87dba0
EWPP-1706: Fixing test page navigation in other languages.
upchuk Nov 3, 2021
a7959bf
Merge pull request #52 from openeuropa/EWPP-1706
upchuk Nov 8, 2021
8c31fe0
Prepare release 1.8.0.
imanoleguskiza Nov 8, 2021
ad21262
Merge pull request #53 from openeuropa/release-1.8.0
imanoleguskiza Nov 8, 2021
8d1ee75
EWPP-1909: Update to PHP7.4/8.0.
hernani Jan 26, 2022
3c1ea43
EWPP-1909: Update to composer2.
hernani Jan 26, 2022
99f517a
EWPP-1909: Run grumphp inside the container.
hernani Jan 26, 2022
3f0c68c
EWPP-1909: Add allow-plugins composer configuration.
hernani Jan 26, 2022
0a8a5a8
EWPP-1909: Change tests for Drupal9.3.
hernani Jan 26, 2022
251f749
Merge pull request #59 from openeuropa/EWPP-1909
hernani Jan 31, 2022
78feeeb
EWPP-0000: Add dealerdirect/phpcodesniffer-composer-installer to allo…
hernani Jan 31, 2022
687f536
Merge pull request #61 from openeuropa/EWPP-0000
hernani Jan 31, 2022
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
20 changes: 7 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ pipeline:
volumes:
- /cache:/cache
commands:
# @todo remove "composer install" step once the following issue is fixed.
# @link https://webgate.ec.europa.eu/CITnet/jira/browse/OPENEUROPA-1234
- composer install --ansi --no-suggest --no-progress
- composer update --prefer-lowest --prefer-stable --ansi --no-suggest --no-progress
- composer self-update --2
- composer update --prefer-lowest --prefer-stable --ansi --no-progress
when:
matrix:
COMPOSER_BOUNDARY: lowest
Expand All @@ -44,14 +42,16 @@ pipeline:
volumes:
- /cache:/cache
commands:
- composer install --ansi --no-suggest --no-progress
- composer self-update --2
- composer install --ansi --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest

site-install:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- while ! mysqladmin ping -h mysql --silent; do sleep 1; done
- ./vendor/bin/run drupal:site-install

grumphp:
Expand All @@ -66,16 +66,10 @@ pipeline:
commands:
- ./vendor/bin/phpunit

behat:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/behat --strict

matrix:
COMPOSER_BOUNDARY:
- lowest
- highest
PHP_VERSION:
- 7.2
- 7.3
- 7.4
- 8.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ vendor
yarn.lock
phpunit.xml
docker-compose.*.yml
/.gitattributes
45 changes: 43 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
# Change Log
# Changelog

## [1.8.0](https://github.com/openeuropa/oe_search/tree/1.8.0) (2021-11-08)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.7.0...1.8.0)

**Merged pull requests:**

- EWPP-1706: Fixing test page navigation in other languages. [\#52](https://github.com/openeuropa/oe_search/pull/52) ([upchuk](https://github.com/upchuk))
- EWPP-1577: Update to D9 and convert behat tests to phpunit [\#51](https://github.com/openeuropa/oe_search/pull/51) ([brummbar](https://github.com/brummbar))

## [1.7.0](https://github.com/openeuropa/oe_search/tree/1.7.0) (2021-09-27)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.6.0...1.7.0)

**Merged pull requests:**

- Prepare release 1.7.0. [\#50](https://github.com/openeuropa/oe_search/pull/50) ([imanoleguskiza](https://github.com/imanoleguskiza))
- EWPP-1465: Enable non-eu languages: is, nb. [\#49](https://github.com/openeuropa/oe_search/pull/49) ([yenyasinn](https://github.com/yenyasinn))
- EWPP-1478: Add interface translations in non-eu languages. [\#48](https://github.com/openeuropa/oe_search/pull/48) ([yenyasinn](https://github.com/yenyasinn))
- Fix release branch for 1.6.0 changelog generation. [\#47](https://github.com/openeuropa/oe_search/pull/47) ([brummbar](https://github.com/brummbar))

## [1.6.0](https://github.com/openeuropa/oe_search/tree/1.6.0) (2021-08-16)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.5.0...1.6.0)

**Merged pull requests:**

- Prepare changelog for release 1.6.0. [\#46](https://github.com/openeuropa/oe_search/pull/46) ([brummbar](https://github.com/brummbar))
- EWPP-1289: Add missing interface translations. [\#44](https://github.com/openeuropa/oe_search/pull/44) ([yenyasinn](https://github.com/yenyasinn))
- EWPP-721: Update xdebug configuration. [\#27](https://github.com/openeuropa/oe_search/pull/27) ([22Alexandra](https://github.com/22Alexandra))
- EWPP-529: Replace scaffold library. [\#25](https://github.com/openeuropa/oe_search/pull/25) ([sergepavle](https://github.com/sergepavle))
- EWPP-516: Update docker images. [\#24](https://github.com/openeuropa/oe_search/pull/24) ([22Alexandra](https://github.com/22Alexandra))

## [1.5.0](https://github.com/openeuropa/oe_search/tree/1.5.0) (2020-06-19)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.4.0...1.5.0)

**Merged pull requests:**

- Update CHANGELOG.md for release 1.5.0. [\#23](https://github.com/openeuropa/oe_search/pull/23) ([brummbar](https://github.com/brummbar))
- OPENEUROPA-3286: Translation of word Search in Lithuanian and Latvian are swapped [\#22](https://github.com/openeuropa/oe_search/pull/22) ([brummbar](https://github.com/brummbar))

## [1.4.0](https://github.com/openeuropa/oe_search/tree/1.4.0) (2020-04-08)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.3.0...1.4.0)

**Merged pull requests:**
Expand All @@ -22,6 +57,7 @@
- OPENEUROPA-2258: Use PHP 7.2 in drone and docker image. [\#13](https://github.com/openeuropa/oe_search/pull/13) ([dxvargas](https://github.com/dxvargas))

## [1.3.0](https://github.com/openeuropa/oe_search/tree/1.3.0) (2019-09-24)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.2.0...1.3.0)

**Merged pull requests:**
Expand All @@ -30,6 +66,7 @@
- OPENEUROPA-2286: Check redirect headers instead of waiting for an external resource. [\#12](https://github.com/openeuropa/oe_search/pull/12) ([imanoleguskiza](https://github.com/imanoleguskiza))

## [1.2.0](https://github.com/openeuropa/oe_search/tree/1.2.0) (2019-07-11)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.1.0...1.2.0)

**Merged pull requests:**
Expand All @@ -39,6 +76,7 @@
- OPENEUROPA-1897: Use ci image. [\#8](https://github.com/openeuropa/oe_search/pull/8) ([imanoleguskiza](https://github.com/imanoleguskiza))

## [1.1.0](https://github.com/openeuropa/oe_search/tree/1.1.0) (2019-05-07)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/1.0.0...1.1.0)

**Merged pull requests:**
Expand All @@ -47,6 +85,9 @@
- OPENEUROPA-1813: Upgrading to 8.7. [\#6](https://github.com/openeuropa/oe_search/pull/6) ([upchuk](https://github.com/upchuk))

## [1.0.0](https://github.com/openeuropa/oe_search/tree/1.0.0) (2019-04-25)

[Full Changelog](https://github.com/openeuropa/oe_search/compare/205c202f4d60497fed87f30a550e0ae3dc0c8d99...1.0.0)

**Merged pull requests:**

- Update CHANGELOG.md for release 1.0.0. [\#5](https://github.com/openeuropa/oe_search/pull/5) ([ademarco](https://github.com/ademarco))
Expand All @@ -56,4 +97,4 @@



\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@ It will also perform token substitution in development configuration files such
./vendor/bin/run drupal:site-install
```

The development site web root should be available in the `build` directory.
Your test site will be available at [http://localhost:8080/build](http://localhost:8080/build).

**Please note:** project files and directories are symlinked within the test site by using the
[OpenEuropa Task Runner's Drupal project symlink](https://github.com/openeuropa/task-runner-drupal-project-symlink) command.

If you add a new file or directory in the root of the project, you need to re-run `drupal:site-setup` in order to make
sure they are be correctly symlinked.

If you don't want to re-run a full site setup for that, you can simply run:

```
$ ./vendor/bin/run drupal:symlink-project
```

### Using Docker Compose

Expand Down
25 changes: 0 additions & 25 deletions behat.yml.dist

This file was deleted.

44 changes: 28 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"drupal/core": "^8.7",
"php": ">=7.2"
"php": ">=7.4",
"drupal/core": "^9.2"
},
"require-dev": {
"composer/installers": "~1.5",
"drupal/core-composer-scaffold": "^8.8",
"drupal/config_devel": "~1.2",
"drupal/drupal-extension": "~4.0",
"drush/drush": "~9.0",
"guzzlehttp/guzzle": "~6.3",
"openeuropa/behat-transformation-context" : "~0.1",
"openeuropa/code-review": "~1.0@beta",
"openeuropa/drupal-core-require-dev": "^8.7",
"openeuropa/task-runner": "~1.0@beta",
"openeuropa/oe_multilingual": "^1.1",
"phpunit/phpunit": "~6.0"
"composer/installers": "^1.5",
"drupal/core-composer-scaffold": "^9.2",
"drupal/config_devel": "^1.2",
"drush/drush": "^10.3",
"drupal/core-dev": "^9.2",
"drupal/ctools": "^3.7",
"drupal/token": "^1.10",
"egulias/email-validator": "^2.1.22 || ^3.0",
"openeuropa/oe_multilingual": "^1.10",
"openeuropa/code-review": "^2.0",
"openeuropa/task-runner-drupal-project-symlink": "^1.0.0-beta5",
"phpspec/prophecy-phpunit": "^1 || ^2"
},
"_readme": [
"Explicit requirement for egulias/email-validator due to https://www.drupal.org/project/drupal/issues/3061074#comment-14300579. It can be removed when Drupal core 9.2 support is droppped.",
"Explicit lower version requirement of ctools due to Drupal core 9.2 compatibility.",
"Explicit requirement of token module due to PHP7.4 compatbility."
],
"scripts": {
"post-install-cmd": "./vendor/bin/run drupal:site-setup",
"post-update-cmd": "./vendor/bin/run drupal:site-setup"
Expand All @@ -40,7 +45,7 @@
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\oe_search\\": "./tests/"
"Drupal\\Tests\\oe_search\\": "./tests/src/"
}
},
"extra": {
Expand All @@ -59,6 +64,13 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"phpro/grumphp": true
}
}
}
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
version: '2'
services:
web:
image: fpfis/httpd-php-dev:7.3
image: fpfis/httpd-php-dev:8.0
working_dir: /var/www/html
ports:
- 8080:8080
volumes:
- .:/var/www/html # Non Mac users.
# - nfsmount:/var/www/html # Mac Users with the nfsmount volume.
environment:
COMPOSERVER: "--2"
XDEBUG_CONFIG: "client_host=172.17.0.1" # Non-Mac users.
# XDEBUG_CONFIG: "client_host=host.docker.internal" # Mac users.
XDEBUG_MODE: "develop, debug"
Expand Down
4 changes: 4 additions & 0 deletions grumphp.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ parameters:
- theme
- install
- yml
grumphp:
git_hook_variables:
EXEC_GRUMPHP_COMMAND: 'docker-compose exec -T web'

2 changes: 1 addition & 1 deletion modules/oe_search_demo/oe_search_demo.info.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: OpenEuropa Search Demo
core: 8.x
core_version_requirement: ^9.2
type: module
2 changes: 1 addition & 1 deletion oe_search.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Search features for the OpenEuropa project.
package: OpenEuropa

type: module
core: 8.x
core_version_requirement: ^9.2

'interface translation project': oe_search
# The path to the actual translations is defined in
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="${drupal.root}/core/tests/bootstrap.php" backupGlobals="true" colors="true" >
<phpunit bootstrap="${drupal.root}/core/tests/bootstrap.php" backupGlobals="true" colors="true" cacheResult="false">
<php>
<ini name="error_reporting" value="32767"/>
<ini name="memory_limit" value="-1"/>
Expand All @@ -8,8 +8,8 @@
<env name="SIMPLETEST_DB" value="mysql://${drupal.database.user}:${drupal.database.password}@${drupal.database.host}:${drupal.database.port}/${drupal.database.name}"/>
</php>
<testsuites>
<testsuite>
<directory>./tests/</directory>
<testsuite name="OpenEuropa Search tests">
<directory>./tests/src/</directory>
</testsuite>
</testsuites>
</phpunit>
5 changes: 1 addition & 4 deletions runner.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ drupal:

commands:
drupal:site-setup:
- { task: "symlink", from: "../../..", to: "${drupal.root}/modules/custom/oe_search" }
- { task: "run", command: "drupal:symlink-project" }
- { task: "run", command: "drupal:drush-setup" }
- { task: "run", command: "drupal:settings-setup" }
- { task: "run", command: "setup:phpunit" }
- { task: "run", command: "setup:behat" }
setup:phpunit:
- { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }
setup:behat:
- { task: "process", source: "behat.yml.dist", destination: "behat.yml" }
2 changes: 1 addition & 1 deletion src/Plugin/Block/SearchFormBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SearchFormBlock extends BlockBase implements ContainerFactoryPluginInterfa
protected $formBuilder;

/**
* Constructs an Search block object.
* Constructs a Search block object.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
Expand Down
21 changes: 0 additions & 21 deletions tests/features/search-block.feature

This file was deleted.

File renamed without changes.
Loading