Commit 02802e9e authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[releng] Moved build scripts to root

parent 90441a88850b
......@@ -42,7 +42,7 @@ To build the project, run:
Alternatively, to locally build the project without using the provided environment, run:
```sh
./.releng/build-src.sh
./build-src.sh
```
Doing so, the minimal working versions of node.js and npm are:
......
......@@ -3,8 +3,7 @@
# Build the sources
SCRIPT="$(readlink -f "$0")"
RELENG="$(dirname "$SCRIPT")"
ROOT="$(dirname "$RELENG")"
ROOT="$(dirname "$SCRIPT")"
VERSION=$(hg -R "$ROOT" id -n)
HASH=$(hg -R "$ROOT" --debug id -i)
......@@ -16,6 +15,7 @@ echo "=========================================="
(cd "$ROOT/libview"; rm -rf build)
(cd "$ROOT/libview"; npm install)
(cd "$ROOT/libview"; npm run build)
(cd "$ROOT/libview"; npm run linter)
echo ""
echo "=========================================="
......@@ -25,6 +25,7 @@ echo "=========================================="
(cd "$ROOT/views-logilab"; rm -rf node_modules/@logilab/libview)
(cd "$ROOT/views-logilab"; npm install)
(cd "$ROOT/views-logilab"; npm run build)
(cd "$ROOT/views-logilab"; npm run linter)
echo ""
echo "=========================================="
......@@ -34,4 +35,10 @@ echo "=========================================="
(cd "$ROOT/extension"; rm -rf node_modules/@logilab/libview)
(cd "$ROOT/extension"; npm install)
(cd "$ROOT/extension"; npm run build)
(cd "$ROOT/extension"; npm run linter)
echo ""
echo "=========================================="
echo "= Packaging @logilab/ld-browser"
echo "=========================================="
(cd "$ROOT/extension/build"; zip -r -FS ld-browser-extension.zip *)
\ No newline at end of file
......@@ -17,7 +17,7 @@ if [ "$BUILDER" -lt "1" ]; then
fi
# 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/build-src.sh
# Build the new image
docker build --tag "logilab/ld-demo-views:latest" --rm --label changeset="$HASH" "$ROOT/views-logilab"
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