2021-07-01 00:52:15 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
CURRENT=$(pwd)
|
|
|
|
|
BASENAME=$(basename "${CURRENT}")
|
2021-07-21 05:26:48 -04:00
|
|
|
# Docker remove dot
|
|
|
|
|
BASENAME="${BASENAME//./}"
|
2022-08-29 11:16:51 -04:00
|
|
|
# Lowercase
|
|
|
|
|
BASENAME="${BASENAME,,}"
|
2021-07-01 00:52:15 -04:00
|
|
|
|
2024-04-23 00:00:27 -04:00
|
|
|
docker exec -u root -ti ${BASENAME}-ERPLibre-1 /bin/bash -c "\
|
2021-07-01 00:52:15 -04:00
|
|
|
cd /ERPLibre; \
|
|
|
|
|
time make test; \
|
|
|
|
|
"
|
2024-04-23 00:00:27 -04:00
|
|
|
|
|
|
|
|
retVal=$?
|
|
|
|
|
if [[ $retVal -ne 0 ]]; then
|
|
|
|
|
docker exec -u root -ti ${BASENAME}_ERPLibre_1 /bin/bash -c "\
|
|
|
|
|
cd /ERPLibre; \
|
|
|
|
|
time make test; \
|
|
|
|
|
"
|
|
|
|
|
fi
|