Skip to content

Commit a834dc8

Browse files
authored
Merge pull request #10 from integer-net/travis-update
Update travis and latest magento 2.4-dev support
2 parents 5a15b2e + b51e4bb commit a834dc8

7 files changed

+17
-11
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
os: linux
22
dist: trusty
33
group: edge
4+
services:
5+
- elasticsearch
46
addons:
57
apt:
68
packages:
@@ -25,10 +27,6 @@ jobs:
2527
env:
2628
- MAGENTO_VERSION=2.3
2729
- TEST_SUITE=integration
28-
- php: 7.2
29-
env:
30-
- MAGENTO_VERSION=2.4-develop
31-
- TEST_SUITE=integration
3230
env:
3331
global:
3432
- COMPOSER_BIN_DIR=~/bin
@@ -37,9 +35,12 @@ cache:
3735
apt: true
3836
directories:
3937
- $HOME/.composer/cache
40-
before_script: ./.travis/before_script.sh
38+
before_script:
39+
- |
40+
sleep 10
41+
./.travis/before_script.sh
4142
script: phpunit -c magento2/dev/tests/$TEST_SUITE --coverage-text --coverage-clover=/tmp/coverage.clover
4243
after_script:
4344
- |
4445
wget https://scrutinizer-ci.com/ocular.phar
45-
php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover
46+
php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1818
### Added
1919
- Adds module registration test (registration.php coverage)
2020
- Adds travis config for tags/releases
21+
22+
## 1.1.2 - 2020-05-11
23+
### Added
24+
- Updates travis, magento 2.4-dev now requires elasticsearch
25+
- Adds return type declaration (`void`) to `setUp()` functions, now needed for magento 2.4

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "integer-net/magento2-global-custom-layout",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Module for Magento 2 that allows you to add global layout update files to be selected from admin, by using '0' instead of an entity_id",
55
"authors": [
66
{

tests/Integration/AbstractFrontendControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class AbstractFrontendControllerTest extends AbstractController
3838
/**
3939
* @inheritdoc
4040
*/
41-
protected function setUp()
41+
protected function setUp(): void
4242
{
4343
$this->objectManager = Bootstrap::getObjectManager();
4444
$this->layoutInterface = $this->objectManager->get(LayoutInterface::class);

tests/Integration/CategoryFrontendControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CategoryFrontendControllerTest extends AbstractFrontendControllerTest
2727
/** @var CategoryInterface $category */
2828
protected $category;
2929

30-
protected function setUp()
30+
protected function setUp(): void
3131
{
3232
parent::setUp();
3333

tests/Integration/PageFrontendControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PageFrontendControllerTest extends AbstractFrontendControllerTest
2929
/** @var CustomLayoutRepositoryInterface $repository */
3030
protected $repository;
3131

32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
parent::setUp();
3535

tests/Integration/ProductFrontendControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ProductFrontendControllerTest extends AbstractFrontendControllerTest
2525
/** @var ProductLayoutUpdateManager $layoutManager */
2626
protected $layoutManager;
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
parent::setUp();
3131

0 commit comments

Comments
 (0)