From 9355c0f1529b4ed05cf280dc2ce00e9e595949c9 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 29 Jul 2019 00:10:37 +0200 Subject: [PATCH] Set up continuous integration using Travis CI This is used to catch build warnings early on. --- .travis.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7106fe583..ce3c7bb58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ dist: bionic +language: python + +python: + - "3.8" stages: - build matrix: include: - - name: Static checks (format.sh) + - name: Static checks (format.sh) + Sphinx build stage: build os: linux addons: @@ -13,6 +17,12 @@ matrix: packages: - dos2unix - recode + - texlive-full script: - bash ./format.sh + + - pip install -r requirements.txt + # TODO: Add `-W` to turn warnings into errors. + # This can only be done once all warnings have been fixed. + - sphinx-build --color -b html -d _build/doctrees . _build/html