Skip to content

Update travis #10

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

Merged
merged 12 commits into from
May 11, 2020
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
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
os: linux
dist: trusty
group: edge
services:
- elasticsearch
addons:
apt:
packages:
Expand All @@ -25,10 +27,6 @@ jobs:
env:
- MAGENTO_VERSION=2.3
- TEST_SUITE=integration
- php: 7.2
env:
- MAGENTO_VERSION=2.4-develop
- TEST_SUITE=integration
env:
global:
- COMPOSER_BIN_DIR=~/bin
Expand All @@ -37,9 +35,12 @@ cache:
apt: true
directories:
- $HOME/.composer/cache
before_script: ./.travis/before_script.sh
before_script:
- |
sleep 10
./.travis/before_script.sh
script: phpunit -c magento2/dev/tests/$TEST_SUITE --coverage-text --coverage-clover=/tmp/coverage.clover
after_script:
- |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover
php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Adds module registration test (registration.php coverage)
- Adds travis config for tags/releases

## 1.1.2 - 2020-05-11
### Added
- Updates travis, magento 2.4-dev now requires elasticsearch
- Adds return type declaration (`void`) to `setUp()` functions, now needed for magento 2.4
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "integer-net/magento2-global-custom-layout",
"version": "1.1.1",
"version": "1.1.2",
"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",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/AbstractFrontendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class AbstractFrontendControllerTest extends AbstractController
/**
* @inheritdoc
*/
protected function setUp()
protected function setUp(): void
{
$this->objectManager = Bootstrap::getObjectManager();
$this->layoutInterface = $this->objectManager->get(LayoutInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/CategoryFrontendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CategoryFrontendControllerTest extends AbstractFrontendControllerTest
/** @var CategoryInterface $category */
protected $category;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ModuleTest extends TestCase
*/
private $objectManager;

protected function setUp()
protected function setUp(): void
{
$this->objectManager = ObjectManager::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/PageFrontendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PageFrontendControllerTest extends AbstractFrontendControllerTest
/** @var CustomLayoutRepositoryInterface $repository */
protected $repository;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/ProductFrontendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ProductFrontendControllerTest extends AbstractFrontendControllerTest
/** @var ProductLayoutUpdateManager $layoutManager */
protected $layoutManager;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down