forked from bayespy/bayespy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (60 loc) · 2.1 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
language: python
# use the faster container-based architecture
sudo: false
# versions to test
# list of packages in miniconda:
# http://repo.continuum.io/pkgs/free/linux-64/index.html
matrix:
include:
- python: 3.3
env:
- PYTHONVERSION==3.3.0
- NUMPYVERSION==1.8.0
- SCIPYVERSION==0.13.0
- MATPLOTLIBVERSION==1.3.0 # matplotlib 1.2.0 fails unit tests
# because of small offsets in plotting
# compared to more recent versions
- python: 3.3
env:
- PYTHONVERSION==3.3
- NUMPYVERSION=
- SCIPYVERSION=
- MATPLOTLIBVERSION=
- python: 3.4
env:
- PYTHONVERSION==3.4
- NUMPYVERSION=
- SCIPYVERSION=
- MATPLOTLIBVERSION=
# install Miniconda; use it to install dependencies
install:
- wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-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 "sphinx>=1.2.3" sphinxcontrib-tikz sphinxcontrib-bayesnet sphinxcontrib-bibtex "numpydoc>=0.5"
- pip install -e .
# Select a proper matplotlib backend
before_script:
- "echo backend : Agg > matplotlibrc"
# Run unit tests for the code, docstrings and documentation
script:
- python -m nose -c nose.cfg
- cd doc && make doctest
# check coverage
after_success:
- coveralls
# if tests fail, upload images to imgur
after_failure:
- wget http://imgur.com/tools/imgurbash.sh
- for img in result_images/test_plot/*.png; do echo -e "\n$img"; bash imgurbash.sh $img; done