-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add .travis.yml and improve CI (fix #10) - Add travis badge - Ensure fooman repository used rather than repo.magento.com - Add beginning of 2.3 tests - Add code sniffs (and fix bad smells)
- Loading branch information
1 parent
78fc976
commit 51fb7fe
Showing
24 changed files
with
2,517 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/.idea | ||
/vendor/ | ||
dev/instances/magento* | ||
dev/output/actual/* | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
language: php | ||
php: 7.2 | ||
|
||
env: | ||
- TEST_GROUP=21 | ||
- TEST_GROUP=22 | ||
- TEST_GROUP=23 | ||
|
||
install: | ||
- # See https://store.fooman.co.nz/blog/no-authentication-needed-magento-2-mirror.html | ||
- composer config --global repositories.fooman composer https://repo-magento-mirror.fooman.co.nz/ | ||
- composer install | ||
- cd dev | ||
- if [[ $TEST_GROUP = 21 ]]; then phpenv global 7.1; fi | ||
- if [[ $TEST_GROUP = 21 ]]; then ./setup-magento-with-diff.sh 2.1.0 2.1.16 $TEST_GROUP; fi | ||
- if [[ $TEST_GROUP = 22 ]]; then phpenv global 7.1; fi | ||
- if [[ $TEST_GROUP = 22 ]]; then ./setup-magento-with-diff.sh 2.2.0 2.2.7 $TEST_GROUP; fi | ||
- if [[ $TEST_GROUP = 23 ]]; then ./setup-magento-with-diff.sh 2.3.0 2.3.0 $TEST_GROUP; fi | ||
- cd - | ||
|
||
script: | ||
- vendor/bin/php-cs-fixer fix --dry-run src/ | ||
- vendor/bin/php-cs-fixer fix --dry-run dev/TestModule | ||
- if [[ $TEST_GROUP = 21 ]]; then vendor/bin/phpunit -c dev/phpunit/phpunit.xml --exclude-group=v22,v23 --verbose; fi | ||
- if [[ $TEST_GROUP = 22 ]]; then vendor/bin/phpunit -c dev/phpunit/phpunit.xml --exclude-group=v21,v23 --verbose; fi | ||
- if [[ $TEST_GROUP = 23 ]]; then vendor/bin/phpunit -c dev/phpunit/phpunit.xml --exclude-group=v21,v22 --verbose; fi | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- mysql-server-5.6 | ||
- mysql-client-core-5.6 | ||
- mysql-client-5.6 | ||
- postfix | ||
|
||
cache: | ||
apt: true | ||
directories: | ||
- $HOME/.composer/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.