forked from rdkit/rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (58 loc) · 2.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# adapted from http://conda.pydata.org/docs/travis.html
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
- "3.4"
# switch to new infrastructure
sudo: false
before_install:
# download and install miniconda
- wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/conda
- export PATH="$HOME/conda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# create and activate the build/test environment
- conda create -q -n tenv python=$TRAVIS_PYTHON_VERSION pip cmake
- source activate tenv
# additional .debs we need:
addons:
apt:
packages:
- build-essential
- openjdk-7-jdk
- swig
- libjpeg-dev
install:
- conda install -q numpy pillow pandas # matplotlib
# install the conda boost packages from the RDKit binstar channel.
- conda install -q -c rdkit boost=1.55.0
# install eigen from conda-forge
- conda install -q -c conda-forge eigen
before_script:
# RDKit
- export RDBASE=`pwd`
- echo $RDBASE
- export PYTHONPATH=${RDBASE}
- export LD_LIBRARY_PATH=${RDBASE}/lib
- export PYTHON=`which python`
- echo $PYTHON
- export PY_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"`
- echo $PY_PREFIX
- export PY_SP_DIR=$PY_PREFIX/lib/python$TRAVIS_PYTHON_VERSION/site-packages
- echo $PY_SP_DIR
script:
- cd $RDBASE
- mkdir build
- cd build
- cmake -D Python_ADDITIONAL_VERSIONS=$TRAVIS_PYTHON_VERSION -D PYTHON_EXECUTABLE=$PYTHON -D PYTHON_LIBRARY=`find $PY_PREFIX -name "libpython$TRAVIS_PYTHON_VERSION*.so"` -D PYTHON_NUMPY_INCLUDE_PATH=$PY_SP_DIR/numpy/core/include -D BOOST_ROOT=$PY_PREFIX -D Boost_NO_SYSTEM_PATHS=ON -D RDK_BUILD_SWIG_WRAPPERS=ON -D RDK_BUILD_AVALON_SUPPORT=ON -D RDK_BUILD_INCHI_SUPPORT=ON -DRDK_BUILD_THREADSAFE_SSS=on -DRDK_TEST_MULTITHREADED=on ..
- cat CMakeCache.txt # useful for debugging/troubleshooting
- make -j2
- make install
- ls "$PREFIX/lib"
- ls "$PY_PREFIX/lib"
- LD_LIBRARY_PATH="$PY_PREFIX/lib:$PREFIX/lib;$SRC_DIR/lib;$LD_LIBRARY_PATH" ctest -j2 --output-on-failure