forked from nschloe/tikzplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.48 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
dist: trusty
language: python
python:
# The images have different hashes on Python 2.7.
# - '2.7'
- '3.6'
addons:
apt:
packages:
- pgf
- texlive-latex-base
- texlive-latex-extra
# for ImageHash
- python-scipy
- python3-scipy
#
- poppler-utils
- pandoc
# Dependencies of Pillow, see
# <https://pillow.readthedocs.org/en/latest/installation.html#linux-installation>.
- libtiff5-dev
- libjpeg8-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms2-dev
- libwebp-dev
- tcl8.6-dev
- tk8.6-dev
- python-tk
before_install:
- pip3 install pytest pytest-cov code_extract pylint
# Make sure to put the readme test at the very end; otherwise it's messing
# around with the other tests.
- code_extract README.md test/zzz_readme_test.py --filter python,test
install:
- pip3 install -r test_requirements.txt
- pip3 install .
cache: pip
# manually install important TeX dependencies
before_script:
- export TEXMFLOCAL=/tmp/texmf/ && mkdir -p $TEXMFLOCAL
- wget http://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip -O /tmp/pgfplots.zip
- unzip /tmp/pgfplots.zip -d $TEXMFLOCAL
- texhash
# run tests
script:
- pylint tikzplotlib/
- pylint test/*py
# cd into test directory to make sure we're using the pip-installed
# tikzplotlib.
- cd test && MPLBACKEND=Agg pytest --cov tikzplotlib
after_success:
- bash <(curl -s https://codecov.io/bash)