From 187fc2bf1ac4b2f396c593b041925aafe6811439 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Wed, 12 Feb 2020 12:08:23 +0100 Subject: [PATCH] Test kernel installation and basic functionality in GitLab CI --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 234dd0f..0e85c49 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,11 +10,21 @@ default: - .gradle/native - .gradle/wrapper before_script: + - apt-get update + - apt-get install --assume-yes jupyter-client jupyter-console - export GRADLE_USER_HOME="${PWD}/.gradle" test: stage: test - script: ./gradlew ${GRADLE_OPTIONS} check shadowJar + script: + - ./gradlew ${GRADLE_OPTIONS} check shadowJar + # Test installation of kernel into Jupyter. + - java -jar build/libs/prob2-jupyter-kernel-*-all.jar install --user + # Test basic functionality of the installed kernel. + - | + jupyter console --kernel=prob2 --simple-prompt << EOF + :version + EOF artifacts: expire_in: 1 week paths: -- GitLab