Skip to content

Commit cf1eb31

Browse files
committed
Merge pull request #194 from GreenGroup/travis
Getting Travis-CI builds working
2 parents c6967ad + 48b06e9 commit cf1eb31

File tree

1 file changed

+47
-8
lines changed

1 file changed

+47
-8
lines changed

.travis.yml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,54 @@
11
language: python
22
python:
3-
- "2.6"
43
- "2.7"
4+
virtualenv:
5+
system_site_packages: true
56
before_install:
67
- sudo apt-get update -qq
78
- sudo apt-get install git build-essential gfortran python-dev liblapack-dev python-openbabel python-setuptools python-pip
8-
- sudo apt-get install python-rdkit librdkit-dev librdkit1 rdkit-data
9-
- git clone git@github.com:GreenGroup/RMG-database.git
9+
# - sudo apt-get install python-rdkit librdkit-dev librdkit1 rdkit-data
10+
- sudo apt-get install -qq python-numpy python-scipy python-matplotlib
11+
- cd ..
12+
- git clone https://github.com/GreenGroup/RMG-database.git
13+
- git clone https://github.com/GreenGroup/PyDAS.git
14+
- git clone https://github.com/GreenGroup/PyDQED.git
15+
# RDKit, based on https://github.com/rdkit/rdkit/blob/master/.travis.yml
16+
- 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
17+
- export CXX=g++
18+
- export CC=gcc
19+
- git clone https://github.com/rdkit/rdkit.git
20+
- cd rdkit
21+
- export RDBASE=`pwd`
22+
- export PYTHONPATH=${PYTHONPATH}:${RDBASE}
23+
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${RDBASE}/lib
24+
- cd External/INCHI-API
25+
- ./download-inchi.sh
26+
- cd ../../
27+
- mkdir build
28+
- cd build
29+
- mkdir $RDBASE/External/java_lib
30+
- cp /usr/share/java/junit.jar $RDBASE/External/java_lib
31+
- ls -l $RDBASE/External/java_lib
32+
- cmake .. -DRDK_BUILD_INCHI_SUPPORT=ON
33+
- make -j2
34+
- make install
35+
- cd ..
36+
- cd ..
1037
install:
11-
- pip install numpy --use-mirrors
12-
- pip install -r requirements.txt --use-mirrors
13-
- make
14-
- pip install .
15-
script: make test
38+
- cd $TRAVIS_BUILD_DIR
39+
- pip install numpy
40+
- pip install -r requirements.txt
41+
- cd ..
42+
- cd PyDAS
43+
- make F77=gfortran
44+
- make install
45+
- cd ..
46+
- cd PyDQED
47+
- make F77=gfortran
48+
- make install
49+
- cd ..
50+
- cd $TRAVIS_BUILD_DIR
51+
- make noQM
52+
script:
53+
- make test
54+
- make eg1

0 commit comments

Comments
 (0)