forked from bayespy/bayespy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (61 loc) · 1.89 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
language: python
# use the faster container-based architecture
sudo: false
addons:
apt_packages:
- pandoc
# versions to test
# list of packages in miniconda:
# http://repo.continuum.io/pkgs/free/linux-64/index.html
matrix:
include:
- python: 3.6
env:
- PYTHONVERSION==3.6
- NUMPYVERSION=
- SCIPYVERSION=
- MATPLOTLIBVERSION=
- python: 3.7
env:
- PYTHONVERSION==3.5
- NUMPYVERSION=
- SCIPYVERSION=
- MATPLOTLIBVERSION=
- python: 3.8
env:
- PYTHONVERSION==3.5
- NUMPYVERSION=
- SCIPYVERSION=
- MATPLOTLIBVERSION=
# install Miniconda; use it to install dependencies
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $(pwd)/miniconda
- export PATH="$(pwd)/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- DEPS="pip nose coverage"
- conda create -q -n test-environment python$PYTHONVERSION $DEPS
- conda install -n test-environment --yes numpy$NUMPYVERSION
- conda install -n test-environment --yes scipy$SCIPYVERSION
- conda install -n test-environment --yes matplotlib$MATPLOTLIBVERSION
- conda install -n test-environment --yes h5py
- source activate test-environment
- pip install coveralls
- pip install ipython
- pip install -e .[dev,doc]
- pip freeze
# Run unit tests for the code, docstrings and documentation
script:
- travis_wait 30 python -m nose -c setup.cfg
# check coverage
after_script:
- coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d33dd85624e42382050a
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always