/ .travis.yml
.travis.yml
 1  # This is a common .travis.yml for generating library release zip files for
 2  # CircuitPython library releases using circuitpython-build-tools.
 3  # See https://github.com/adafruit/circuitpython-build-tools for detailed setup
 4  # instructions.
 5  
 6  dist: trusty
 7  sudo: false
 8  language: python
 9  python:
10      - "3.6"
11  
12  cache:
13      pip: true
14  
15  deploy:
16    provider: releases
17    api_key: $GITHUB_TOKEN
18    file_glob: true
19    file: $TRAVIS_BUILD_DIR/bundles/*
20    skip_cleanup: true
21    on:
22      tags: true
23  
24  install:
25    - pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26    - pip install --force-reinstall pylint==1.9.2
27  
28  script:
29    - pylint adafruit_circuitplayground/*.py
30    - ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
31    - circuitpython-build-bundles --filename_prefix adafruit-circuitpython-circuitplayground --library_location .
32    - cd docs && sphinx-build -E -W -b html . _build/html