-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (37 loc) · 1.79 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="false"
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: "otxkGaQOe0j7/0n7BD8DY2peBV5eiFO2gYjbi+B3LZecp8msbPntagP0/87g3SJfGjNIUws1JXGCn1Z8q0ddo62dmLqcgyr5VcvPvcY2uQfg+g1vk6O7kyqndQDD7+7d/AED65qfqeZL02U8Hx8BnLGohyQQj+DqjUp+KFoCDU/wLgmrdpmnM2gtrqFIq1qC9uIAwNFuSu1WJAyPhe6CA1qKINYNmXu8FhN+CZbOFJiDCvHUkr4e9ELKqwNaIXH+c7eRUjgK5hEdo3soc4a6TLdZjkhdwUapdERLGpEy8yhKEFMq606//w6hehEgrr5lT+2zNBOryJJXMr7x5vA6QNnyOibQ36aUR/z5nShpJzZGFkOymniRd//3aiS1T15nN/fz7B0bDeU6wmqnFBMN6IP/S1XPClob7beowXLGM4eEuYceDA+wo7yY6TDwx+/ZlE46So/hDqXybpJr8gnYSE4rzFYJAtIA7Rmk8u1ICDo1sx5jpNE4lCACdCPTJHfTj5uVPILOaBwLTPj+9nLEBCopVQic3MDkWRPUzGFY+yx/eWYw6w6E5ea3XpkVtXuyZXKhq0hu13nIxcd00nfN0qPKzZOO4GcSX+Yru9WAb6Q+XlaB/Of3kjTzZtFw82JiO83EKjauFF5aN+5eStFylGiAxahS6RJQAkq/cvosU5U="
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 electronutlabs_lis2dh12.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
- circuitpython-build-bundles --filename_prefix electronutlabs-circuitpython-lis2dh12 --library_location .
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..