Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Notebook
Commits
73fb838c
Commit
73fb838c
authored
Oct 14, 2020
by
Romain Casati
Browse files
Tracking published notebook version.
parent
33188eb0
Pipeline
#346610
passed with stages
in 2 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
73fb838c
...
...
@@ -4,8 +4,10 @@ pages:
script
:
-
apt-get update && apt-get -y install make python3 python3-setuptools python3-pip nodejs npm git tar zip
-
make build
-
make version
-
make archives
-
mv build/lib/notebook public
-
mv version public/
-
mv basthon-notebook.{tgz,zip} public/
artifacts
:
paths
:
...
...
Makefile
View file @
73fb838c
...
...
@@ -14,6 +14,9 @@ build: clean install-kernel
for
f
in
custom api/ kernelspecs/ basthon/
;
do
cp
-r
notebook/
$$
f build/lib/notebook/
;
done
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
:
tar
--exclude
=
"*.htaccess"
-czf
basthon-notebook.tgz
-C
build/lib/notebook/ .
cd
build/lib/notebook/
&&
zip
--exclude
"*.htaccess"
-qr
../../../basthon-notebook.zip
.
&&
cd
-
...
...
@@ -21,4 +24,4 @@ archives:
test
:
build
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment