Questions tagged [continuous-integration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
4 answers
5k views

Getting "Connection "default" is not defined" during integration test sandbox setup

On a dockerized CI environment (Ubuntu 20.04) we are getting the following error: cd dev/tests/integration; ../../../vendor/bin/phpunit -v --testsuite 'Our Tests' ... Disabling Maintenance Mode: In ...
Alex's user avatar
  • 13.8k
1 vote
1 answer
435 views

How to test module in different Magento and PHP versions using CI?

I have an open-source module in Github and I'd like to automatically test it via CI using the Magento Coding Standard and different Magento installations in different PHP versions. For example: ...
Rafael Corrêa Gomes's user avatar
6 votes
0 answers
179 views

How to configure MFTF in Jenkins

In magento2 - Is it possible to configure continuous integration like Jenkins with Magento Functional Test Framework ? We are using bitbucket for our private repositories and Allure for reporting. ...
user1565482's user avatar
9 votes
1 answer
4k views

How to setup CI on Magento 2 extension using Bitbucket Pipeline?

How can I prepare a CI script to check the syntax and code quality of my extension code? It's not necessary to run Unit Test or Integration Test, I'm using Bitbucket and I would like to use Bitbucket ...
Rafael Corrêa Gomes's user avatar
2 votes
1 answer
1k views

Magento 2 - PHPUnit using mocking or without mocking?

I am developing an eCommerce web application using magento2. During the development I came to know magento2 useses mockbuilder or mock objects for testing it's modules functionality. Which is fare in ...
Kapil Yadav's user avatar
1 vote
0 answers
94 views

Magento2 - Understanding dev/travis/before_script.sh

I am trying to set up Travis to be used as our Continuous integration server. Magento comes with a .travis.yml where it has: matrix: - TEST_SUITE=unit - TEST_SUITE=integration ...
Wayne Theisinger's user avatar
1 vote
1 answer
1k views

Should I run catalog:images:resize on each deployment or only incidentally?

The question is simple: Should I add bin/magento catalog:images:resize to our Continuous Integration script, running it on every deployment? Or is it's intent solely to run incidentally (since ...
Giel Berkers's user avatar
  • 12.3k
4 votes
1 answer
379 views

How can I run unit tests / code sniffs for individual modules using a CI provider?

At the company I work with, our modules are individual repositories. We add those as composer packages to our Magento 2 installation by adding GitHub as a repository in our composer.json: "require": {...
Giel Berkers's user avatar
  • 12.3k