forked from JohannesBuchner/imagehash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (42 loc) · 1.26 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
language: python
sudo: false
python:
- "2.7"
- "3.4"
- "3.5"
git:
depth: 10000
install:
# Fetch and install conda
# -----------------------
- export CONDA_BASE="http://repo.continuum.io/miniconda/Miniconda"
- if [[ "${TRAVIS_PYTHON_VERSION}" == 2* ]]; then
wget ${CONDA_BASE}2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget ${CONDA_BASE}3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p ${HOME}/miniconda
- export PATH="${HOME}/miniconda/bin:${PATH}"
# Create the testing environment
# ------------------------------
- conda config --set always_yes true
- conda config --set changeps1 no
- conda config --set show_channel_urls true
- conda config --add channels conda-forge
- conda update --quiet conda
- ENV_NAME="test-environment"
- conda create --quiet -n ${ENV_NAME} python=${TRAVIS_PYTHON_VERSION}
- source activate ${ENV_NAME}
# Customise the testing environment
# ---------------------------------
- conda install --quiet --file conda-requirements.txt
- pip install coveralls
# Summerise environment
# ---------------------
- conda list
- conda info -a
# Install and test imagehash
- python setup.py install
script:
- coverage run setup.py test
after_success: coveralls