forked from adafruit/Adafruit_CircuitPython_DymoScale
/
.travis.yml
43 lines (37 loc) · 1.78 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
# This is a common .travis.yml for generating library release zip files for
# CircuitPython library releases using circuitpython-build-tools.
# See https://github.com/adafruit/circuitpython-build-tools for detailed setup
# instructions.
dist: xenial
language: python
python:
- "3.6"
cache:
pip: true
env:
- DEPLOY_PYPI="true"
deploy:
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: "$TRAVIS_BUILD_DIR/bundles/*"
skip_cleanup: true
overwrite: true
on:
tags: true
- provider: pypi
user: adafruit-travis
password:
secure: gFlUJx4AFvVTzhbRbTiBXl3be3Nm+m9VHCSA6ICatUdO34NA7Wzo+rBoV7YDjV85Pc3U9G5zW9SvXb9BMIT7k4tOqmog5RCtzwlLq3S/RRoOkGr6UY702EC1M0ruMVHBBAB5Pwzfom8VVRNL9n4nXsPfr41U35M6daIYH+onEDXIhq+ES3NkU3ciTC/q9QO9ChsHuWS1oNjGxmiYWqDEJ6vYL34D2RYIq4+P/hmFFM9rvhYBRYT+MYeHBOXbsc5KZhoIki7rKU0UW4zQcORkvMuWfalLWd24GR8aG9rB9fZrnAZG1qGtqwBCh91CNlzt8eziPOGeP1hXMnVHnvXveumnSBrFcGvkQ2DYu3v6kUn9AVMoJ3oeDpegCzse7jgOLUipJ0eXN1lmEKpEZNlszRGlSA2m2mYVo4WwqMSz7ZtZWG7L+4OQ21JG+MbACoQJJ//YxAwFtALQrVlOaE9X7ElCDnlceYRebm7RTQ0bE4+BTL08ppKyOaiFJxdbSz3ZPufNHVlM8oYqIwRPLLZozMG5WmtZ62EO3Jvb0YicuccO2xNCHW0zySxQgbzVMfLnN4F9wSxcLIADbXnvPx1A5D6zd1CxFK16S49CJZm0QUPlXMA7ac1rwKv6sZhPA4/rsoOLbkPTaqZZtrwmc4/+9qRxSDbR0YDAmR5ZMnQjT5I=
on:
tags: true
condition: $DEPLOY_PYPI = "true"
install:
- pip install -r requirements.txt
- pip install circuitpython-build-tools Sphinx sphinx-rtd-theme
- pip install --force-reinstall pylint==1.9.2
script:
- pylint adafruit_dymoscale.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-dymoscale --library_location .
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..