Skip to content

Commit

Permalink
Auto accept EULA for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 27, 2018
1 parent cb7ec86 commit 7fabead
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .tests/startup-tests/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ cd "${COMPOSEPATH}" && docker-compose exec -T php bash -c "find /startup.d/*.sh-
echo "# ----------------------------------------------------------------------------------------"
echo "# [TEST] ${f}"
echo "# ----------------------------------------------------------------------------------------"
if ! docker exec -t ${CONTAINER} bash "${f}"; then
if ! docker exec -t ${CONTAINER} bash "${f}" "ACCEPT_EULA=1"; then
sleep 5
if ! docker exec -t ${CONTAINER} bash "${f}"; then
if ! docker exec -t ${CONTAINER} bash "${f}" "ACCEPT_EULA=1"; then
sleep 5
if ! docker exec -t ${CONTAINER} bash "${f}"; then
if ! docker exec -t ${CONTAINER} bash "${f}" "ACCEPT_EULA=1"; then
sleep 5
if ! docker exec -t ${CONTAINER} bash "${f}"; then
if ! docker exec -t ${CONTAINER} bash "${f}" "ACCEPT_EULA=1"; then
sleep 5
if ! docker exec -t ${CONTAINER} bash "${f}"; then
if ! docker exec -t ${CONTAINER} bash "${f}" "ACCEPT_EULA=1"; then
echo "[FAIl] ${f}"
exit 1
fi
Expand Down
5 changes: 5 additions & 0 deletions cfg/php-startup-7.0/02-ms-odbc-driver.sh-example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17
###
### Pre-flight check
###
if [ "${#}" = "1" ]; then
if [ "${1}" = "ACCEPT_EULA=1" ]; then
ACCEPT_EULA=Y
fi
fi
if [ "${ACCEPT_EULA}" != "Y" ]; then
echo "MS ODBC EULA not accepted. Aborting installation."
exit 0
Expand Down
5 changes: 5 additions & 0 deletions cfg/php-startup-7.1/02-ms-odbc-driver.sh-example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17
###
### Pre-flight check
###
if [ "${#}" = "1" ]; then
if [ "${1}" = "ACCEPT_EULA=1" ]; then
ACCEPT_EULA=Y
fi
fi
if [ "${ACCEPT_EULA}" != "Y" ]; then
echo "MS ODBC EULA not accepted. Aborting installation."
exit 0
Expand Down
5 changes: 5 additions & 0 deletions cfg/php-startup-7.2/02-ms-odbc-driver.sh-example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17
###
### Pre-flight check
###
if [ "${#}" = "1" ]; then
if [ "${1}" = "ACCEPT_EULA=1" ]; then
ACCEPT_EULA=Y
fi
fi
if [ "${ACCEPT_EULA}" != "Y" ]; then
echo "MS ODBC EULA not accepted. Aborting installation."
exit 0
Expand Down
5 changes: 5 additions & 0 deletions cfg/php-startup-7.3/02-ms-odbc-driver.sh-example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17
###
### Pre-flight check
###
if [ "${#}" = "1" ]; then
if [ "${1}" = "ACCEPT_EULA=1" ]; then
ACCEPT_EULA=Y
fi
fi
if [ "${ACCEPT_EULA}" != "Y" ]; then
echo "MS ODBC EULA not accepted. Aborting installation."
exit 0
Expand Down

0 comments on commit 7fabead

Please sign in to comment.