-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
36 lines (31 loc) · 934 Bytes
/
.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
language: python
python:
- "2.7"
before_install:
# Install RDKit from source (Release_2014_03_1)
# Follow the pattern in rdkit/.travis.yml on GitHub
- clone=`pwd`
- sudo apt-get update -qq
- sudo apt-get install -qq flex bison build-essential python-numpy cmake python-dev sqlite3 libsqlite3-dev libboost-dev libboost-python-dev libboost-regex-dev python-imaging openjdk-7-jdk swig junit
- cd ~
- git clone https://github.com/rdkit/rdkit.git rdkit/rdkit
- cd rdkit/rdkit
- git checkout tags/Release_2014_03_1
- export RDBASE=`pwd`
- export PYTHONPATH=${PYTHONPATH}:${RDBASE}
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${RDBASE}/lib
- mkdir build
- cd build
- cmake -D RDK_BUILD_CPP_TESTS=OFF ..
- make -j2
- make install
# Install code analysis tools
- pip install pep8
- pip install pyflakes
install:
- cd $clone
- python setup.py install
script:
- nosetests
- pep8 rdkit_utils
- pyflakes rdkit_utils