mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
* update .gitignore * foundation for 3D descriptors move PBF into core * cleanup work * a bit more cleanup * move the principal moments calc to MolTransforms * cleanup * cleanups * add caching of the principal moments and values * do not include the 3D descriptors in MolDescriptors.h * the properties are computed * add PMI descriptors and tests * add tests for NPR descriptors * return 0 when the largest PMI is zero * PMI edge case tests * NPR edge case tests * PBF edge case tests * PBF edge case tests * more edge cases * add a few more 3d descriptors * add defns to docs * tests for the new descriptors * add versions to new descriptors * add 3d descriptors to python wrapper * add eigen support to the travis build * try to get non-windows builds working * remove computeCovarianceMatrix() from java wrapper * make pmi property names "private"
71 lines
2.2 KiB
YAML
71 lines
2.2 KiB
YAML
# 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
|