This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# name=$([ "$1" ] && echo "$1" || echo default) | ||
version="7.4" | ||
declare -a versions=("7.3" "7.4" "8.0") | ||
|
||
if [[ " ${versions[*]} " == *"$1"* ]]; | ||
then | ||
version="$1" | ||
else | ||
echo "PHP version '$1' is not supported." | ||
IFS=', ';echo "We suggest to select one of the following options: ${versions[*]}" | ||
echo "Test will run using default version $version" | ||
fi | ||
|
||
echo $version | ||
|
||
# for version in "${versions[@]}" | ||
# do | ||
docker run -it --rm \ | ||
-e "TERM=xterm-256color" \ | ||
-v "$PWD":/usr/src \ | ||
-w /usr/src \ | ||
php:"$version"-cli-alpine \ | ||
vendor/bin/phpunit | ||
# done |
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
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