From 86896e7fddade812e2d7ec13e12a63266197ceeb Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 7 Dec 2018 19:07:37 -0500 Subject: [PATCH] Add Travis CI for pull requests. --- .travis.yml | 8 ++++++++ README.md | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..246a732 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: python +python: + # Current production server runs Debian stretch, which has Python 3.5. + - '3.5' +install: + - pip install -r requirements.txt +script: + - python check.py && python build.py diff --git a/README.md b/README.md index 2d7f631..8231cc2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,9 @@ checks with [`python3 check.py`][4]. To generate the HTML for the site, run [`python3 build.py`][5]. Output will be generated in a directory called `dist`. +Pull requests will be checked with Travis, by running [`check.py`][4] and +[`build.py`][5]. Please ensure that builds pass. + Thank you for contributing. [1]: https://uwat.cf