Commit 73fb838c authored by Romain Casati's avatar Romain Casati
Browse files

Tracking published notebook version.

parent 33188eb0
Pipeline #346610 passed with stages
in 2 minutes and 30 seconds
...@@ -4,8 +4,10 @@ pages: ...@@ -4,8 +4,10 @@ pages:
script: script:
- apt-get update && apt-get -y install make python3 python3-setuptools python3-pip nodejs npm git tar zip - apt-get update && apt-get -y install make python3 python3-setuptools python3-pip nodejs npm git tar zip
- make build - make build
- make version
- make archives - make archives
- mv build/lib/notebook public - mv build/lib/notebook public
- mv version public/
- mv basthon-notebook.{tgz,zip} public/ - mv basthon-notebook.{tgz,zip} public/
artifacts: artifacts:
paths: paths:
......
...@@ -14,6 +14,9 @@ build: clean install-kernel ...@@ -14,6 +14,9 @@ build: clean install-kernel
for f in custom api/ kernelspecs/ basthon/; do cp -r notebook/$$f build/lib/notebook/; done for f in custom api/ kernelspecs/ basthon/; do cp -r notebook/$$f build/lib/notebook/; done
mv build/lib/notebook/basthon/* build/lib/notebook/ mv build/lib/notebook/basthon/* build/lib/notebook/
version:
echo $$(date -d @$$(git log -1 --format="%at") +%Y/%m/%d_%H:%M:%S)_kernel_$$(pip3 show basthon-kernel | grep Version | cut -f2 -d' ') > version
archives: archives:
tar --exclude="*.htaccess" -czf basthon-notebook.tgz -C build/lib/notebook/ . tar --exclude="*.htaccess" -czf basthon-notebook.tgz -C build/lib/notebook/ .
cd build/lib/notebook/ && zip --exclude "*.htaccess" -qr ../../../basthon-notebook.zip . && cd - cd build/lib/notebook/ && zip --exclude "*.htaccess" -qr ../../../basthon-notebook.zip . && cd -
...@@ -21,4 +24,4 @@ archives: ...@@ -21,4 +24,4 @@ archives:
test: build test: build
bash -c "set -m ; python3 -m http.server --directory build/lib/notebook/ --bind localhost 8888 & sleep 1 ; firefox localhost:8888 ; fg %1" bash -c "set -m ; python3 -m http.server --directory build/lib/notebook/ --bind localhost 8888 & sleep 1 ; firefox localhost:8888 ; fg %1"
.PHONY: clean build all test install-kernel archives .PHONY: clean build all test install-kernel archives version
Supports Markdown
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