forked from colour-science/colour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (50 loc) · 1.88 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
language: python
matrix:
fast_finish: true
include:
- python: 3.4
env:
- PYTHON_VERSION="3.4"
- NUMPY_VERSION="1.8.1"
- SCIPY_VERSION="0.14.0"
- MATPLOTLIB_VERSION="1.3.1"
- python: 2.7
env:
- PYTHON_VERSION="2.7"
- NUMPY_VERSION="1.8.1"
- SCIPY_VERSION="0.14.0"
- MATPLOTLIB_VERSION="1.3.1"
- python: 2.6
env:
- PYTHON_VERSION="2.6"
- NUMPY_VERSION="1.8.1"
- SCIPY_VERSION="0.14.0"
- MATPLOTLIB_VERSION="1.3.1"
- UNITTEST2_VERSION="0.5.1"
- ORDEREDDICT_VERSION="1.1"
notifications:
slack: colour-science:Y6lPPcN7y53Js94geqUpqsAP
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes --quiet conda
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- PACKAGES="python=${PYTHON_VERSION}"
- PACKAGES="${PACKAGES} numpy"; if [ ${NUMPY_VERSION} ]; then PACKAGES="${PACKAGES}=${NUMPY_VERSION}"; fi
- PACKAGES="${PACKAGES} scipy"; if [ ${SCIPY_VERSION} ]; then PACKAGES="${PACKAGES}=${SCIPY_VERSION}"; fi
- PACKAGES="${PACKAGES} matplotlib"; if [ ${MATPLOTLIB_VERSION} ]; then PACKAGES="${PACKAGES}=${MATPLOTLIB_VERSION}"; fi
- if [ ${UNITTEST2_VERSION} ]; then PACKAGES="${PACKAGES} unittest2=${UNITTEST2_VERSION}"; fi
- if [ ${ORDEREDDICT_VERSION} ]; then PACKAGES="${PACKAGES} ordereddict=${ORDEREDDICT_VERSION}"; fi
install:
- conda create --yes --quiet -n colour-test ${PACKAGES} pip setuptools nose
- source activate colour-test
- pip install coverage coveralls flake8 mock
- pip install backports.functools_lru_cache
script:
- flake8 --exit-zero colour
- nosetests --nocapture --with-doctest --doctest-options=+ELLIPSIS,+NORMALIZE_WHITESPACE --with-coverage --cover-package=colour -exclude-dir=
after_success:
- coveralls