-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (39 loc) · 1.12 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
language: python
jobs:
include:
- name: "Formatting checks on Python 3.7 (Xenial Linux)"
python: 3.7
install:
- pip3 install -r requirements.txt
- pip3 install black isort
script:
- isort -c -vb ./*.py
- black --target-version py35 --check ./*.py
after_script: true
- name: "Python 3.5 on Xenial Linux"
python: 3.5
- name: "Python 3.6 on Xenial Linux"
python: 3.6
- name: "Python 3.7 on Xenial Linux"
python: 3.7
- name: "Python 3.8 on Xenial Linux"
python: 3.8
addons:
apt:
packages:
- texlive-latex-extra
- texlive-fonts-recommended
- msttcorefonts
- dvipng
install:
- pip3 install -r requirements.txt
script:
- python3 -V
- python3 -m py_compile configs.py example.py reaction_pypaths.py
- mv output.png reference.png
- python3 example.py
- identify reference.png
- identify output.png
after_script:
- compare reference.png output.png diff.png
- curl --trace-ascii - --upload-file ./diff.png https://transfer.sh/diff.png