forked from abinit/pseudo_dojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (66 loc) · 2.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: python
# We don't actually use the Travis Python but conda
matrix:
include:
- os: linux
python: 2.7
env: PYTHON_VERSION=2.7
- os: linux
python: 3.6
env: PYTHON_VERSION=3.6
#- os: osx
# python: 2.7
# language: generic
# env: PYTHON_VERSION=2.7
sudo: required
install:
#- sudo apt-get update
- env
# Install conda https://conda.io/docs/travis.html
- source ./dev_scripts/conda_installer.sh
# Install abinit from abinit conda channel.
- conda config --add channels conda-forge
# Get pymatgen from matsci
- conda config --add channels matsci
# Use my pymatgen fork
#- git clone https://github.com/gmatteo/pymatgen.git && cd pymatgen && pip install -q -r requirements.txt && pip install -q -r requirements-optional.txt && python setup.py install && cd ../
# pymatgen master
#- git clone https://github.com/materialsproject/pymatgen.git && cd pymatgen && pip install -q -r requirements.txt && pip install -q -r requirements-optional.txt && python setup.py install && cd ../
- conda install -c abinit abipy
- conda install -c abinit abinit=8.2.2
# See https://github.com/BVLC/caffe/issues/3884 and https://docs.continuum.io/mkl-optimizations/
#- conda install nomkl
#- conda install gcc scipy
#- conda install pandas
#- conda install netcdf4
# See hSttps://github.com/ContinuumIO/anaconda-issues/issues/1360
#- conda install hdf4=4.2.12
- pip install pytest scripttest nose nose-exclude
- pip install pep8 python-coveralls
- conda install matplotlib seaborn
- conda install ipython jupyter nbformat
# Install abinit from gmatteo's conda channel.
#- conda install abinit
# phonopy is not a requirement but we test scripts in data/runs that use it
# FIXME: I'm still using my fork
#- git clone https://github.com/gmatteo/pymatgen.git && cd pymatgen && pip install -q -r requirements.txt && pip install -q -r requirements-optional.txt && python setup.py install && cd ../
#- git clone https://github.com/gmatteo/abipy.git && cd abipy && pip install -q -r requirements.txt && pip install -q -r requirements-optional.txt && python setup.py install && cd ../
- python setup.py install
- mkdir -p ${HOME}/.abinit/abipy
- cp dev_scripts/travis_scheduler.yml ${HOME}/.abinit/abipy/scheduler.yml
- cp dev_scripts/travis_manager.yml ${HOME}/.abinit/abipy/manager.yml
#- ./dev_scripts/pyclean.py .
# command to run tests
script: ./dev_scripts/runtests.sh
branches:
only:
- master
- develop
after_success:
- if [[ "${PYTHON_VERSION}" == "2.7" && "${TRAVIS_OS_NAME}" == "linux" ]]; then coveralls; fi
notifications:
email:
recipients:
on_success: change
on_failure: always