Skip to content

Commit

Permalink
Do not run tests in -vvv mode unless flagged
Browse files Browse the repository at this point in the history
Add the string in the commit message to set the -vvv flag
  • Loading branch information
convenient committed Mar 23, 2020
1 parent 3c48dbd commit 27cb351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ before_install:
- test -f $HOME/bin/magerun2 || (wget https://files.magerun.net/n98-magerun2-latest.phar && chmod +x n98-magerun2-latest.phar && mv n98-magerun2-latest.phar $HOME/bin/magerun2)

script:
- ADDITIONAL_ARGS="-v"
- if [[ $TRAVIS_COMMIT_MESSAGE == *"VERBOSE"* ]]; then ADDITIONAL_ARGS="-vvv"; fi;
- ./vendor/bin/codecept build -c dev
- URL="https://magento-disablestockres.localhost/" MYSQL_USER="root" MYSQL_HOST="127.0.0.1" MYSQL_DB="databasedisablestockres" MYSQL_PORT="3306" ./vendor/bin/codecept run acceptance -c dev -vvv
- URL="https://magento-disablestockres.localhost/" MYSQL_USER="root" MYSQL_HOST="127.0.0.1" MYSQL_DB="databasedisablestockres" MYSQL_PORT="3306" ./vendor/bin/codecept run acceptance -c dev $ADDITIONAL_ARGS

addons:
apt:
Expand Down

0 comments on commit 27cb351

Please sign in to comment.