Commit 3879e2fb authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[releng] Build the environment as required

parent 8d43d90da58e
...@@ -9,6 +9,13 @@ HASH=$(hg -R "$ROOT" --debug id -i) ...@@ -9,6 +9,13 @@ HASH=$(hg -R "$ROOT" --debug id -i)
# Cleanup # Cleanup
hg -R "$ROOT" purge --all hg -R "$ROOT" purge --all
BUILDER=$(docker images | grep -o -E '^logilab/ld-build-env(\s)+latest' | wc -l)
if [ "$BUILDER" -lt "1" ]; then
echo "=> Build environment must be created"
"$ROOT/.releng/build-env.sh"
fi
# Execute the build # Execute the build
docker run -it --rm --user=$(id -u) --group-add=$(id -g) -v "$ROOT:/src" -e "HOME=/npm" "logilab/ld-build-env:latest" /src/.releng/build-src.sh docker run -it --rm --user=$(id -u) --group-add=$(id -g) -v "$ROOT:/src" -e "HOME=/npm" "logilab/ld-build-env:latest" /src/.releng/build-src.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment