forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (49 loc) · 2.17 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
38
39
40
41
42
43
44
45
46
47
48
49
50
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
- EXCLUDE_TESTS="--ignore=pymatgen/ext/tests/test_matproj.py"
# command to install dependencies
sudo: false
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/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
- conda create -q -n test-environment python=3.7 numpy scipy matplotlib sympy cython pandas==0.25.3 networkx pytest h5py git
- source activate test-environment
- conda update --quiet --yes numpy scipy matplotlib sympy cython networkx pytest pip h5py
- pip install --quiet --ignore-installed -r requirements.txt -r requirements-optional.txt
- >-
echo "backend: Agg" > matplotlibrc
before_script:
- python setup.py --quiet develop
# command to run tests, e.g. python setup.py test
script:
- export PATH="$HOME/miniconda/bin:$PATH"
- source activate test-environment
#- echo "pycodestyle->mypy->pytest->pydocstyle... Note that this fails on the first command with error."
#- echo "It is highly recommended that you use the pre-commit hook provided in pymatgen (simply copy pre-commit to .git/hooks) to check before pushing your code."
- travis_wait 28800 pytest $EXCLUDE_TESTS pymatgen
#- flake8 --count --show-source --statistics pymatgen
#- flake8 --count --exit-zero --max-complexity=10 --statistics pymatgen
# Docstyle checks are enforced for files that have been modified since the v2020.1.28 tagged release.
#- pydocstyle --count pymatgen
notifications:
email:
recipients:
on_success: change
on_failure: always