Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Support GAP kernels in notebooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehrends committed Mar 5, 2020
1 parent 33c4d48 commit 7437530
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Jenkinsfile.notebooks
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ node {
def errors = 0
def stdenv = [
"PATH=${workspace}/local/bin:${env.PATH}",
"GAPROOT=${workspace}/gap",
]
def nbtest = { String path ->
try {
sh "${workspace}/nbtests/jupyter-julia ${path}"
sh "${workspace}/nbtests/jupyter-test ${path}"
} catch (Exception err) {
errors++
currentBuild.result = "SUCCESS"
Expand All @@ -25,15 +26,28 @@ node {
git url: "https://github.com/oscar-system/OSCARBinder",
branch: "master"
}
dir("gap") {
git url: "https://github.com/gap-system/gap"
branch: "stable-4.11"
}
}
stage("Build") {
sh "mkdir -p ${workspace}/local/bin"
withEnv(stdenv) {
dir("julia") {
sh "make -j8"
sh "mkdir -p ${workspace}/local/bin"
sh "ln -sf ${workspace}/julia/julia ${workspace}/local/bin"
}
}
withEnv(stdenv) {
dir("gap") {
sh "./autogen.sh"
sh "./configure --with-gc=julia --with-julia=${workspace}/julia"
sh "make -j8"
sh "test -d pkg || (make bootstrap-pkg-full && cd pkg && ../bin/BuildPackages.sh)"
sh "ln -sf ${workspace}/gap/bin/gap.sh ${workspace}/local/bin/gap"
}
}
withEnv(stdenv) {
sh "${workspace}/nbtests/install-oscar"
}
Expand All @@ -43,7 +57,7 @@ node {
def notebooks = sh(script: "find ${workspace}/notebooks -name *.ipynb",
returnStdout: true).trim().split("\\r?\\n")
for (notebook in notebooks) {
nbtest notebook
nbtest notebook
}
if (errors > 0) {
currentBuild.result = "FAILURE"
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y \
gfortran \
git \
host \
jq \
inetutils-ping \
inetutils-traceroute \
libboost-dev \
Expand All @@ -34,6 +35,7 @@ RUN apt-get update && apt-get install -y \
libxml-writer-perl \
libxml2-dev \
libxslt1-dev \
libzmq3-dev \
locales \
make \
mercurial \
Expand Down

0 comments on commit 7437530

Please sign in to comment.