-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
75 lines (64 loc) · 2.25 KB
/
.travis.yml
File metadata and controls
75 lines (64 loc) · 2.25 KB
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
69
70
71
72
73
74
75
language: python
sudo: false
python:
- 2.7
os:
- linux
cache:
pip: true
directories:
- /home/travis/miniconda
addons:
apt:
packages:
- libimage-exiftool-perl
- libav-tools
- ffmpeg
- libmagickwand-dev
- libzbar-dev
before_install:
- export PATH="$HOME/miniconda/bin:$PATH"
# Download and install conda if necessary
- if ! ( conda -V && which conda ); then
if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi ;
bash miniconda.sh -f -b -p $HOME/miniconda;
fi
# Setup conda
- hash -r
- conda config --set always_yes true --set changeps1 false
- conda update -q conda
- conda info -a
# Create and activate the virtualenv
- if [ ! -e $HOME/miniconda/envs/py$TRAVIS_PYTHON_VERSION ]; then
conda create -q -n py$TRAVIS_PYTHON_VERSION python=$TRAVIS_PYTHON_VERSION pip;
fi
- source activate py$TRAVIS_PYTHON_VERSION
- if [[ "$(python --version 2>&1)" != *"$TRAVIS_PYTHON_VERSION"* ]]; then exit 1; fi
install:
- conda install boost scipy ;
- conda install -c menpo opencv ;
- pip install -U pip;
# Install dlib from git (with pip) as there was an issue with libjpeg
# Which was solved and not yet released.
- pip install git+https://github.com/davisking/dlib.git@02f6da285149a61bc58728d9c5e77932151118b5#egg=dlib ;
- pip install -r test-requirements.txt ;
- pip install -v -e .
- pip uninstall -y file-metadata
- ls -l file_metadata/datafiles
script:
- flake8 setup.py setupdeps.py file_metadata tests
- python -m pytest --cov ;
- python setup.py sdist bdist bdist_wheel
after_success:
- |-
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then
curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $TRAVIS_TOKEN" -d "{\"request\": {\"branch\":\"master\"}}" https://api.travis-ci.org/repo/pywikibot-catfiles%2Fdocker-file-metadata/requests ;
fi
after_script:
- bash <(curl -s https://codecov.io/bash)
notifications:
email: false