forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.4 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
services:
- mysql
language: python
python:
- "3.6"
env:
global:
- secure: "LQDypjfjcQYVN1NYPYfBz1VqMSqjNQqEqGBp+R6u/opf8bRUtYUGdK1gR356U3ApPzgLl906M3rI2ZMNqxiROdB6RDZrDEzXLhushwCfqt0C9qmZFLsj7TtGCMT8qHahU/sfYKntYxlWDgTbvFVrHhmg6brWEObPYny5FUidJc4="
- PATH=$PATH:`pwd`/cmd_line/bader/Linux_64bit:`pwd`/cmd_line/aconvasp/Linux_64bit:`pwd`/cmd_line/boltztrap/Linux_64bit
- GULP_LIB=`pwd`/cmd_line/gulp/Libraries
- MPLBACKEND=Agg
- PMG_MAPI_ENDPOINT=https://zola.lbl.gov/rest/v2
- NOSE_EXCLUDE_TESTS="pymatgen.ext.tests.test_matproj.MPResterTest;pymatgen.analysis.tests.test_pourbaix_diagram.PourbaixDiagramTest;pymatgen.tests.test_init.SettingsTestCase"
# command to install dependencies
sudo: false
install:
- pip install --upgrade numpy
- pip install --quiet --ignore-installed -r requirements.txt -r requirements-optional.txt
- pip install nose-timer
- export CFLAGS=$CFLAGS" -std=gnu++11"
- travis_wait pip install BoltzTraP2
- export CFLAGS=${CFLAGS%% -std=gnu++11}
- >-
echo "backend: Agg" > matplotlibrc
# This is needed, otherwise, nosetests can't find the installed pymatgen C
# extensions.
before_script:
- python setup.py --quiet develop
# command to run tests, e.g. python setup.py test
script:
- travis_wait 28800 nosetests --with-timer --timer-top-n 30 pymatgen
notifications:
email:
recipients:
on_success: change
on_failure: always