Ver Fonte

Merge pull request #3364 from Calinou/add-travis-ci

Set up continuous integration using Travis CI
Rémi Verschelde há 5 anos atrás
pai
commit
cb57bfa008
1 ficheiros alterados com 11 adições e 1 exclusões
  1. 11 1
      .travis.yml

+ 11 - 1
.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