Skip to content

Commit 32d0eba

Browse files
committed
add circleci config
1 parent 9b1c885 commit 32d0eba

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.circleci/config.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
version: 2
2+
3+
jobs:
4+
5+
# # python2:
6+
# build:
7+
# working_directory: ~/matplotlib2tikz
8+
# docker:
9+
# - image: ubuntu:17.10
10+
# steps:
11+
# - run: apt-get update
12+
# # don't install sympy with apt: it pulls in texlive which takes for ever
13+
# # to download and install
14+
# - run: apt-get install -y git python-pip pandoc
15+
# - run: pip2 install -U pytest pytest-cov pylint
16+
# - checkout
17+
# - run: pip2 install -r test_requirements.txt
18+
# - run: pip2 install .
19+
# # lint
20+
# - run: pylint matplotlib2tikz/
21+
# - run: pylint test/*.py
22+
# # make sure that rst converts correctly
23+
# - run: cat README.md | sed 's_<img src="\([^"]*\)" width="\([^"]*\)">_![](\1){width="\2"}_g' > /tmp/README.md
24+
# - run: pandoc /tmp/README.md -o README.rst
25+
# - run: pip2 install docutils pygments
26+
# - run: python setup.py check -r -s
27+
# # The tests
28+
# - run: cd test/ && MPLBACKEND=Agg pytest --cov matplotlib2tikz
29+
30+
# python3:
31+
build:
32+
working_directory: ~/matplotlib2tikz
33+
docker:
34+
- image: ubuntu:17.10
35+
steps:
36+
- run: apt-get update
37+
- run: apt-get install -y pgf texlive-latex-base texlive-latex-extra
38+
- run: pip3 install -U pytest pytest-cov code_extract pylint
39+
- run: code_extract README.md test/zzz_readme_test.py --filter python,test
40+
- checkout
41+
# install latest pgfplots
42+
- run: export TEXMFLOCAL=/tmp/texmf/ && mkdir -p $TEXMFLOCAL
43+
- run: wget http://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip -O /tmp/pgfplots.zip
44+
- run: unzip /tmp/pgfplots.zip -d $TEXMFLOCAL
45+
- run: texhash
46+
# install
47+
- run: pip2 install -r test_requirements.txt
48+
- run: pip3 install .
49+
# lint
50+
- run: pylint setup.py
51+
- run: pylint matplotlib2tikz/
52+
- run: pylint test/*.py
53+
# The actual test
54+
- run: cd test/ && pytest --cov matplotlib2tikz
55+
# submit to codecov
56+
- run: apt-get install -y curl
57+
- run: bash <(curl -s https://codecov.io/bash)
58+
59+
# workflow builds don't support forked PRs yet, cf.
60+
# <https://circleci.com/docs/2.0/faq/#can-i-build-fork-prs-using-workflows>.
61+
# workflows:
62+
# version: 2
63+
# build-and-test:
64+
# jobs:
65+
# - python2
66+
# - python3

0 commit comments

Comments
 (0)