56 Commits
Author SHA1 Message Date
Christian Münch e76c540309 Possible fix for static file autoloading issue with Guzzle and
php-scoper

See: https://github.com/humbug/php-scoper/issues/298
2022-01-03 18:48:01 +01:00
Christian Münch 67d900b2b7 WIP Remove phing and add box logic 2022-01-03 18:48:01 +01:00
Christian Münch f136f69dea Fix phar timestamp check 2021-12-29 23:39:30 +01:00
Christian Münch db3b47b904 Remove old build scripts 2020-11-14 17:49:56 +01:00
Christian Münch 0eeaab03a1 Add php-cs-fixer and remove travis script 2020-11-14 17:49:56 +01:00
Christian Münch 2ae7364df2 Add COMPOSER_MEMORY_LIMIT=-1 to travis build 2020-08-31 12:49:50 +02:00
Christian Münch bdef407f90 Small code refactorings 2019-12-29 16:18:08 +01:00
Christian Münch b50f2bb398 Move sources of shared directory to src 2019-12-28 18:18:29 +01:00
Christian Münch 2fa5258cb3 Remove unused PHPUnit exclude group variable 2019-12-28 18:18:29 +01:00
Christian Münch 720f69fc73 Fix EA extended violation
Replace require_once with replace
2019-12-28 18:18:29 +01:00
Christian Münch ad58ccabdf Patch Composer autoloader for phar mode 2019-04-01 12:30:03 +02:00
Christian Münch 9331a8469b Move "disable mail" config to travis file 2018-11-17 19:05:56 +01:00
Christian Münch 9d1694aae0 Disable sendmail on travis 2018-11-17 19:05:56 +01:00
Christian Münch 7d9c4fd150 Fix #302 Replace n98-magerun.phar witg n98-magerun2.phar
[ci skip]
2018-09-13 00:54:53 +02:00
Tom Klingenberg 4038599a87 Fix bash autocompletion, fixes #331
Via `bin/compile-bash-autocompletion`.

The script

    build/bin/compile-bash-autocomplemetion-sh

creates (when invoked from a Zsh shell) an autocompletion file for Zsh.

This causes an error as the generated file is used in a bash environment.

Fix is to make the generation for the bash autocompletion explicit by
using the --shell=bash switch for the symfony-autocomplete tool.


Refs:

- #331

- #327
2017-11-16 00:26:39 +01:00
Christian Münch 8f1d7d7fc9 Update codecov bash script 2017-10-11 22:01:09 +02:00
Christian Münch e8d82aea1a Change Magento Version for Circle-CI Build to 2.2 2017-10-11 18:06:17 +02:00
Christian Münch fb75eb2f88 Major break: Renamed config commands according to changes in Magento 2.2 2017-10-10 20:43:42 +02:00
Christian Münch 1301cd2925 Fix code generator command after upgrade to Magento 2.2
Add an autoloader decorator. The decorator mirrors the autoloader
pathes of n98-magerun2 to the Magento core autoloader.
Add support to exclude tests for different magento versions.
2017-10-10 08:09:15 +02:00
Tom Klingenberg 4ba6023d01 Update Magento2 version 2017-02-28 21:58:54 +01:00
Tom Klingenberg f7c5e778c3 Move autocompletion into res folder
And forward port of Magerun static bash automcompletion compilation.

More space in project root directory and align it's name with the other
autocompletion files (fish, zsh).

Register symfony-console-autocomplete as a development requirement.

Reflect changes in docs.

Make autocompletion compiling a first-level command.

Integrate with Travis build.
2017-02-11 17:31:27 +01:00
Tom Klingenberg fda980e8a9 Build phar reproduceable and from dev requirements
This is a forward port from Magerun.

More stable build of the magerun phar-file.

Phar file build is now reproduceable:

- Sorting files based on their path to have the same order when building
  the phar.

- Composer autoloader is suffixed with the timestamp of last commit.

- Timestamps within the phar file are reset to the last commit
  (unchanged).

The build requirements (phing, phar-utils) are now proper dev-requirents
in composer.json (composer was a non-dev requirement already). All three
tools used to build the phar file are now part of the direct project
requirements.

Additionally all dependencies are now compatible with PHP minimum
version 5.6.0. This is reflected in the build now properly due
to composer.lock fixation.
2017-02-11 15:41:48 +01:00
Tom Klingenberg 510a10cbfa Run Phpunit test-suite as well in production mode
On Travis the Phpunit test-suite was only run against "default" Magento
mode. Tests should also run against production mode.
2017-01-24 09:04:56 +01:00
Tom Klingenberg 1c6b73df37 Make mode visible in phpunit build on Travis 2017-01-23 20:55:33 +01:00
Tom Klingenberg 1c6a0d105d Switch to magento-ce-2.1.2 in local build
From magento-ce-2.1.0.
2017-01-23 20:55:23 +01:00
Tom Klingenberg c02e0c9595 Add coding-standard for shared 2016-08-28 21:56:15 +02:00
Tom Klingenberg f7d3ec0d70 Create dedicated build script for Travis 2016-08-28 16:17:20 +02:00
Tom Klingenberg 43693928a8 Fix local test setup stopfile creation
when running from scratch the .n98-magerun stopfile was created in the
wrong folder.

This happened because within the ensure_magento2_auth function which is
called in the process the working directory is changed.

Creating the stopfile in the correct place and with changes of 81decd5
allows to additionally remove the hint on the environment variable
N98_MAGERUN2_TEST_MAGENTO_ROOT which is not needed any longer.

Refs:

- 81decd5eac
2016-08-26 16:29:39 +02:00
Tom Klingenberg fa5722c951 Do not composer install after build
Clean build needs no dev-requirements afterwards. Leftover from the past.
2016-08-02 22:57:47 +02:00
Tom Klingenberg 64658accd9 Switch to shared build script, towards #494 2016-07-31 09:38:37 +02:00
Tom Klingenberg 4847167078 Add database port in install script
Database-port was not supported previously in Magerun2 script.

Additionally:

- The if-clause can be replaced by making use of the password longopt
  instead of the short option (note: see as well POSIX).

- Switch to white foreground color in buildecho(), looks better.
2016-07-31 09:38:37 +02:00
Tom Klingenberg d423fec227 Improve build scripts
Move lib into sh and improve comments towards a better code-style.
2016-07-17 23:49:58 +02:00
Tom Klingenberg d712a20a79 Use Magento 2.1 in local test setup 2016-07-11 12:36:54 +02:00
Tom Klingenberg 7b769b3617 Create stopfile if not exists
Quicker local test setup.
2016-07-11 12:36:54 +02:00
Tom Klingenberg 96374eef74 Add local test setup build
Taken from shared folder test-branch / N98-Magerun 1.
2016-07-05 08:41:27 +02:00
Tom Klingenberg 748e210f80 Add build unshallow logic for Travis
Travis does a shallow clone and used a git version that does not support
to make a clone from the shallow repository that falls back to non-local
automatically.

Therefore the repository is unshallowed before the standard build script
is run.
2016-06-27 21:06:28 +02:00
Tom Klingenberg 0cab8d9eab [BUILD] set phar timestamps
set timestamp entries within the phar file to the timestamp of the
latest commit. this makes the creation and checksum of the phar-
file more reproduceable.

- composer require seld/phar-utils 1.0.1

- add phar-time-stamp-reset script (latest commit time-stamp)

- integration into build.sh
2016-05-29 15:39:37 +02:00
Tom Klingenberg 03ebcb08a1 Fix build to not always exit after Magento setup
Magneto repo connectivity check was intended only on install failure.
2016-05-24 00:02:57 +02:00
Tom Klingenberg 90e6a2e167 Check repository connectivity in Travis build
Script that allows to make Magento setup fail but not the entire build if
the reason is connectivity to the Mangeto composer repository.

This is a bit rough as the Magento repository is currently down but
builds are still needed.

Problems became immanent in ce5c3c5 and the verbose setting is now removed
again.

- Ref: ce5c3c5579e386fe0c622584347b628461619609
2016-05-22 20:01:24 +02:00
Tom Klingenberg 8236e83237 Fix install command
In a recent change 8115147 in 1.1.11 exceptions were swallowed by accident
leaving the install command with 0 exit status while being in error.

This qualifies as a flaw because the installer should exit early.

It came to light while getting Magento composer repository 500er errors
and then debugging the Magento install on Travis.

<https://repo.magento.com/packages.json> (with credentials)

    HTTP/1.1 500 Internal Server Error
    Cache-Control: no-cache
    Content-Type: application/json
    Date: Sat, 21 May 2016 07:30:17 GMT
    Server: nginx
    X-Frame-Options: DENY
    Content-Length: 57
    Connection: keep-alive

    {"error":{"code":500,"message":"Internal Server Error"}}

Likely the 500 error is a 503 given because the Magentocommerce website
login service that can be checked via <https://www.magentocommerce.com/
products/customer/account/login> is down.

    HTTP/1.1 503 Service Temporarily Unavailable
    Server: nginx
    Date: Sat, 21 May 2016 07:23:52 GMT
    Content-Type: text/html
    Content-Length: 70676
    Connection: keep-alive
    ETag: "573ff027-11414"

But this might only be a side-effect.

Additionally the -vvv switch has been added to the build to show error-
details for both the magerun and the composer command.

- Ref: https://travis-ci.org/ktomk/n98-magerun2/jobs/131873305#L422

- Ref: 8115147ddf

- Archive: http://archive.is/g4wBF
2016-05-22 20:01:23 +02:00
Tom Klingenberg f4dd40b4ce Travis preferred way of Mysql 5.6 installation
Previously we took care of that on our own, most likely it's better now-
adays this way.

Magento 2 operates on Mysql 5.6.

- Ref: <https://docs.travis-ci.com/user/database-setup/#MySQL-5.6>
2016-04-04 07:37:42 +02:00
Tom Klingenberg 7edbe184d8 [BUILD] update mysql 5.6 setup on travis
with the better error checking to fail early, it came to attention that
the procedure to install mysql 5.6 on travis trusty beta could be sim-
plified as the package is now directly available.

still ref: 713f40f
2016-01-03 22:23:31 +01:00
Tom Klingenberg a182b66b21 [BUILD] make travis fail early
add a check of the return code for the mysql 5.6 on travis.

bash unofficial strict mode is enabled for the mysql etup srcipt as well.

these changes make the travis build fail early in case sudo does not work
which was triggered when forking the project.
2016-01-03 22:20:55 +01:00
Tom Klingenberg 4d5d482300 [BUILD] travis magento2 setup
streamline with the circl-ci build:

- centralize magneto connect public build credentials.

- script is sourced, not executed. remove shebang.

- travis.yml reorder env: global, secure and matrix.

- remove shebang on source files.
2015-12-25 08:12:12 +01:00
Tom Klingenberg f239abed8a [BUILD] circle-ci magento2 setup
- add the "magerun_public_build" magento credentials

- fix wrong magento version string, now "magento-ce-2.0.0"
2015-12-23 11:14:35 +01:00
Tom Klingenberg 8b0b0ada85 [FIX] minor: typo 2015-12-23 09:32:47 +01:00
Tom Klingenberg c71e1111b3 [BUILD] minor fix travis build composer warning
composer in the build directory gave a warning that composer.lock was
outdated.

this was due to a change in 1fc5d86 of which this commit then is a fix-up.
2015-12-22 11:50:51 +01:00
Tom Klingenberg 713f40f651 [BUILD] travis trusty dist
via <https://github.com/mozilla/treeherder/pull/1080> and <https://blog.travis-ci.com/2015-11-27-moving-to-a-more-elastic-future>
2015-12-22 03:05:37 +01:00
Christian Münch 823294cf4f [TASK] Added composer auth to download magento. 2015-11-18 15:59:21 +01:00
Tom Klingenberg f60fe1adb5 [BUILD] improve build
- improve code coverage file argument error message

- improve phar related files location

- git-ingore n98-magerun2.phar - that file should never become part of
  this repository. build.xml changed accordingly (this is different to
  magerun 1).
2015-11-14 07:41:09 +01:00