-
-
Save manuquentin/5d514e43d28f592afb4b to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Retrieve and parse all groups | |
groups=$(sudo docker run -v /vagrant:/app/parallelTests/ acme/parallelTests phpunit -c /app/parallelTests/app --list-groups) | |
parsed=$(echo $groups | sed "s/-/\t/g") | |
results=$(echo $parsed | awk '{for(i=9;i<=NF;i++) {print $i}}') | |
# Loop on each group name and run parallel | |
for i in $results; do | |
echo $i | |
done | parallel sudo docker run -v /vagrant:/app/parallelTests/ acme/parallelTests phpunit -c /app/parallelTests/app --group {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment