Skip to content

Commit

Permalink
Test cling notebook with LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Dec 27, 2018
1 parent 835d68f commit 0caca08
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -167,6 +167,11 @@ matrix:
packages:
- clang-7
- llvm-7-dev
- env: CONDA_ENV_FILE="binder/environment.yml"
compiler: gcc
os: linux
script:
- bin/test_cling_notebook.sh

before_install:
- |
Expand All @@ -177,7 +182,6 @@ before_install:
install:
- source bin/install_travis.sh
script:
- bin/travis_clang_format.sh
- bin/test_travis.sh
- bin/trigger_feedstock.sh
notifications:
Expand Down
6 changes: 5 additions & 1 deletion bin/install_travis.sh
Expand Up @@ -118,7 +118,11 @@ if [[ "${BUILD_DOXYGEN}" == "yes" ]]; then
conda_pkgs="$conda_pkgs doxygen=1.8.13"
fi

conda create -q -p $our_install_dir ${conda_pkgs};
if [[ "${CONDA_ENV_FILE}" == "" ]]; then
conda create -q -p $our_install_dir ${conda_pkgs};
else
conda create -q -p $our_install_dir ${CONDA_ENV_FILE};
fi
source activate $our_install_dir;

if [[ "${WITH_FLINT_DEV}" == "yes" ]] && [[ "${WITH_ARB}" != "yes" ]]; then
Expand Down
6 changes: 6 additions & 0 deletions bin/test_cling_notebook.sh
@@ -0,0 +1,6 @@
#!/bin/bash

unset CC
unset CXX
binder/postBuild
jupyter nbconvert --execute --to notebook notebooks/symengine.ipynb
1 change: 1 addition & 0 deletions binder/environment.yml
Expand Up @@ -9,4 +9,5 @@ dependencies:
- mpc
- cmake
- arb
- llvmdev
- notebook
2 changes: 1 addition & 1 deletion binder/postBuild 100644 → 100755
@@ -1,7 +1,7 @@
mkdir build
cd build
export LDFLAGS="-Wl,-rpath,$CONDA_DIR/lib -L$CONDA_DIR/lib"
cmake -DWITH_COTIRE=no -DBUILD_SHARED_LIBS=yes -DWITH_MPC=yes -DWITH_ARB=yes -DINTEGER_CLASS=flint -DCMAKE_PREFIX_PATH=$CONDA_DIR -DCMAKE_INSTALL_PREFIX=$CONDA_DIR -DBUILD_TESTS=off -DBUILD_BENCHMARKS=off -DCMAKE_INSTALL_LIBDIR=lib ..
cmake -DWITH_COTIRE=no -DBUILD_SHARED_LIBS=yes -DWITH_MPC=yes -DWITH_ARB=yes -DINTEGER_CLASS=flint -DWITH_LLVM=yes -DCMAKE_PREFIX_PATH=$CONDA_DIR -DCMAKE_INSTALL_PREFIX=$CONDA_DIR -DBUILD_TESTS=off -DBUILD_BENCHMARKS=off -DCMAKE_INSTALL_LIBDIR=lib ..
make -j4
make install
cd ..
Expand Down

0 comments on commit 0caca08

Please sign in to comment.