-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (37 loc) · 1.06 KB
/
.travis.yml
File metadata and controls
41 lines (37 loc) · 1.06 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
sudo: required
dist: trusty
cache:
- pip
- directories:
- $HOME/.cache/pip
addons:
apt:
packages:
- python-flake8
- python3-pip
language: python
python:
- "2.7"
before_install:
# we need KiCad for testing
#- sudo add-apt-repository --yes ppa:js-reynaud/kicad-4 -y
- sudo add-apt-repository --yes ppa:js-reynaud/kicad-dev-nightly -y
- sudo apt update -q
- sudo apt install --no-install-recommends kicad -y
install:
- pip install sphinx sphinx_rtd_theme
- sudo pip3 install mypy
script:
# otherwise our scripts do not find pcbnew
- export PYTHONPATH=/usr/lib/python2.7/dist-packages
# test code formatting
- flake8
# static type checking
- python3 -m mypy --py2 kicad examples # tests
# run unittests
- ./setup.py test
# test sphinx documentation
- (cd docs && mkdir -p _static) # otherwise `make html` will return an error
- (cd docs && make SPHINXBUILD=sphinx-build SPHINXOPTS=-W html)
- (cd docs && make SPHINXBUILD=sphinx-build SPHINXOPTS=-W doctest)
- (cd docs && make SPHINXBUILD=sphinx-build SPHINXOPTS=-W linkcheck)