add start script test

pull/363/head
Joseph Hamman 2018-07-31 11:07:59 -07:00
rodzic f40e4ecdcb
commit b99ec0587f
5 zmienionych plików z 25 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,8 @@
System - Post-build scripts
---------------------------
It is possible to run scripts after you've built the environment specified in
your other files. This could be used to, for example, download data or run
some configuration scripts.
In this example, we download and install a Jupyter Notebook extension.

Wyświetl plik

@ -0,0 +1,2 @@
#!/bin/bash
jupyter nbextension enable --py --sys-prefix ipyleaflet

Wyświetl plik

@ -0,0 +1 @@
ipyleaflet

Wyświetl plik

@ -0,0 +1,5 @@
#!/bin/bash
export TEST_START_VAR="var is set"
exec "$@"

Wyświetl plik

@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled
if [ "$TEST_START_VAR" != "var is set" ]
then
echo "TEST_START_VAR is not set"
exit 1
fi