test matrix

This commit is contained in:
Akolzin Dmitry 2020-02-19 11:49:32 +03:00
parent d0467c020e
commit c0f46cb672
3 changed files with 16 additions and 4 deletions

View File

@ -34,13 +34,21 @@ after_success:
jobs: jobs:
include: include:
- php: 7.0 - php: 7.0
env: TEST_SUITE=2.3 env:
- TEST_SUITE=2.3
- OPENCART=2.3
- php: 7.1 - php: 7.1
env: TEST_SUITE=2.3 env:
- TEST_SUITE=2.3
- OPENCART=2.3
- php: 7.2 - php: 7.2
env: TEST_SUITE=2.3 env:
- TEST_SUITE=2.3
- OPENCART=2.3
- php: 7.3 - php: 7.3
env: TEST_SUITE=2.3 env:
- TEST_SUITE=2.3
- OPENCART=2.3
- stage: deploy - stage: deploy
before_script: skip before_script: skip
script: make build_archive script: make build_archive

View File

@ -18,6 +18,7 @@ before_script:
# Change MySQL root password # Change MySQL root password
echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
composer require --dev beyondit/opencart-test-suite ~$(TEST_SUITE) composer require --dev beyondit/opencart-test-suite ~$(TEST_SUITE)
composer require --dev opencart/opencart ~$(OPENCART)
composer setup composer setup
bin/robo --load-from tests/RoboFile.php project:deploy bin/robo --load-from tests/RoboFile.php project:deploy
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null

View File

@ -24,5 +24,8 @@
"@test-catalog" "@test-catalog"
], ],
"setup" : "bin/robo --load-from tests/RoboFile.php opencart:setup" "setup" : "bin/robo --load-from tests/RoboFile.php opencart:setup"
},
"require-dev": {
"consolidation/robo": "~1.0"
} }
} }