ampersand/travis-vanilla-magento
Composer 安装命令:
composer require ampersand/travis-vanilla-magento
包简介
A dev dependency helper to set up a LAMP stack and Magento at a specified version in travis, to be used for testing modules
README 文档
README
This is being scaled back in favour of https://github.com/AmpersandHQ/magento-docker-test-instance
ampersand/travis-vanilla-magento
This script helps bootstrap a magento2 instance in travis for running tests against.
Uses https://store.fooman.co.nz/blog/no-authentication-needed-magento-2-mirror.html
Caveats
- It generates a cert on the fly so you'll need to suppress SSL errors. Any PRs to fix this would be welcomed.
Example
composer require --dev ampersand/travis-vanilla-magento
You call the script from your .travis.yml and it will set up a magento instance for you to run tests against.
Look at this repositories .travis.yml to see which dependencies are needed
Install a specific version
VERSION=2.3.3 NAME=TESTONE . ./vendor/bin/travis-install-magento.sh
This would generate
-
a database accessible at
mysql -uroot -h127.0.0.1 databaseTESTONE -
To add sample data set the flag when installing
VERSION=2.3.3 NAME=TESTONE WITH_SAMPLE_DATA=1 . ./vendor/bin/travis-install-magento.sh
Install latest version
NAME=TESTTWO . ./vendor/bin/travis-install-magento.sh
This would generate
-
a database accessible at
mysql -uroot -h127.0.0.1 databaseTESTTWO -
To add sample data set the flag when installing
NAME=TESTTWO WITH_SAMPLE_DATA=1 . ./vendor/bin/travis-install-magento.sh
统计信息
- 总下载量: 3.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-16