forked from ReactionMechanismGenerator/RMG-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 1017 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
37
38
39
40
language: python
sudo: false
python:
- "2.7"
virtualenv:
system_site_packages: true
env:
global:
- secure: "L2ja+ZnV83w4qG3E8FwTjm0D6IWNOnj5wuFOjYTwbzQP4OAgLAWBzCMtxzWy5sMxFLtRgkswBH1d5f5kg8Ab7GIyAMFgQwe8UFqMJ+N05QNszE1mJkAvJtv2XN7669XXQhTt5EXfHrCcGZaODVnI2CEA8GB5DxiHO2Lcqf/xvgE="
addons:
apt:
packages:
- git
before_install:
# Set up anaconda
- wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
# Update conda itself
- conda update --yes conda
- cd ..
# this is the RMG-database project, so need to fetch RMG-Py
- git clone https://github.com/ReactionMechanismGenerator/RMG-Py.git
# Add RMG-Py to PYTHONPATH
- export PYTHONPATH=$TRAVIS_BUILD_DIR/RMG-Py:$PYTHONPATH
- cd RMG-Py
install:
- conda env create
- source activate rmg_env
- make
script:
- make test-database
- cd $TRAVIS_BUILD_DIR
after_success:
- bash ./deploy.sh