forked from danse-inelastic/multiphonon
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
61 lines (52 loc) · 1.66 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
sudo: true
# dist: trusty
language: python
python:
- 2.7
- 3.6
branches:
only:
- master
#
# services:
#
# matrix:
# include:
# - os: linux
env:
before_install:
- sudo apt-get update
- sudo apt-get install -y freeglut3-dev libglu1-mesa
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
- mkdir -p $HOME/.mantid
# - echo "default.facility=SNS" > $HOME/.mantid/Mantid.user.properties
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda config --set always_yes true
- conda update conda
- conda config --add channels conda-forge
- conda config --add channels mcvine
- conda config --add channels neutrons
- conda config --add channels mantid
- conda create -n testenv pip pytest pytest-cov python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib histogram ipywe mantid-framework=4
- source activate testenv
- python setup.py install
- pip install coveralls
# - pip install codecov
script:
- py.test -s --cov=multiphonon tests
- python examples/getdos-Al.py
- python examples/getdos-Al-from-nparrs.py
# the following were run standalone but now all included in the cmd above.
# - travis_wait 40 python tests/getdos_TestCase.py
# - travis_wait 20 python tests/getdos_TestCase2.py
# - travis_wait 20 python tests/ui/batch_TestCase.py
after_success:
- coveralls
notifications:
email:
on_success: change
on_failure: always