forked from colour-science/colour-demosaicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 2.01 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
sudo: true
language: python
matrix:
fast_finish: true
include:
- python: 2.7
env:
- PYTHON_VERSION="2.7"
notifications:
slack: colour-science:Y6lPPcN7y53Js94geqUpqsAP
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost-all-dev
- libopenexr-dev
- libilmbase-dev
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- 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} scipy"; if [ ${SCIPY_VERSION} ]; then PACKAGES="${PACKAGES}=${SCIPY_VERSION}"; fi
- PACKAGES="${PACKAGES} matplotlib"; if [ ${MATPLOTLIB_VERSION} ]; then PACKAGES="${PACKAGES}=${MATPLOTLIB_VERSION}"; fi
- wget https://github.com/OpenImageIO/oiio/archive/Release-1.5.21.tar.gz -O /tmp/OpenImageIO-1.5.21.tar.gz
- tar -xvf /tmp/OpenImageIO-1.5.21.tar.gz
- cd oiio-Release-1.5.21
- make
- cd /home/travis/build/colour-science/colour-demosaicing
install:
- conda create --yes --quiet -n colour-demosaicing-test ${PACKAGES} pip setuptools nose
- source activate colour-demosaicing-test
- pip install colour-science coverage coveralls flake8 mock==1.0.1
- sudo cp /home/travis/build/colour-science/colour-demosaicing/oiio-Release-1.5.21/dist/linux64/bin/* /usr/local/bin/
- sudo cp /home/travis/build/colour-science/colour-demosaicing/oiio-Release-1.5.21/dist/linux64/lib/* /usr/local/lib/
- cp /home/travis/build/colour-science/colour-demosaicing/oiio-Release-1.5.21/dist/linux64/python/OpenImageIO.so /home/travis/miniconda/envs/colour-demosaicing-test/lib/python2.7/site-packages/
script:
- flake8 colour_demosaicing
- nosetests --nocapture --with-doctest --doctest-options=+ELLIPSIS,+NORMALIZE_WHITESPACE --with-coverage --cover-package=colour_demosaicing -exclude-dir=
after_success:
- coveralls