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
steps: | |
- name: Run behat tests | |
command: 'cd /var/www/html/tests ; composer install ; ./bin/behat --profile probo --tags "~@javascript"' | |
- name: Run behat js tests | |
command: 'wget http://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar ; apt-get install xvfb -y ; xvfb-run java -jar selenium-server-standalone-2.48.2.jar & ; ./bin/behat --profile probo --tags "@javascript" ; disown' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of
(separating the subcommands with semicolons) I would use
The difference is that if one of the subcommands fails (returns a non-zero exit code) then the later subcommands will not be executed if you separate them with
&&
.I would also use
&&
instead of;
for the second command.