forked from fourstix/Sparkfun_CircuitPython_SerLCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.77 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: fourstix
password:
secure: rQ/KwVHEBaeme32mt+N+pBG5HdQXANexKvw/WaZlYx1Sjk/B8C2rjB0BiT+Zby8c+06Ico0MYQOo8wC+P6GWF11H2l4VPzjd0KN6q+5ve+HtFIug2+JCCmF8qtkwyGbNmzgVdY7GV4YtxsoPR/zf+X4WvT8GZ9DXYR47mDg4gFOiG1i64/Og4W7fwOSTmL8SqoWcxfbcCXy4DUOAqxTqNpZn1qT7qT9lwH4FOIKL/bzmPpQ7sehTFj6K9PMcv8ADFlGPDgtrJrOSYxdMwkSjU11AIvAtnoNBoZXe9AuQTVal1Bk6GGcDXr4vuhvRcR7TFx6lQayxxDgBStwwwzuF/bvf2qkL/f3nW99IikQZ9Uu5tu5sVAKSWi9Fy2gr/N4VOdsjV8fMVy0DyVeE8IzpzENsdrUxRM405XIRZh1xWPrU3Ec9JAj4TF+wMf0kG3ROGBOJLcBO+tTrmXyyREHPEHAM06D7rvPCMsnKe6PDRmP4PviwYo9dAYWEpbrQvZbjq7s5XYARvZSqairn/SMkzALI9qKYnSUhhH1R+VVcw6uXifQ6c4FMSzAqbXwuGEutFVjioxC9m6d+oIsTUHUF+4Zkg3ZuECw/yQPwOwjYxp83UqM6fbTnYaYaMprmIEiLTEl3cZTFYX+G9459Jqepouhl7osy0SgtjrHhstl66/8=
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 sparkfun_serlcd.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
- circuitpython-build-bundles --filename_prefix sparkfun-circuitpython-serlcd --library_location .
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..