Skip to content

Commit

Permalink
Travis doctest docker (qgis#3618)
Browse files Browse the repository at this point in the history
* Changes script to also run make doctest

Now, that we have some tests with Python doctest, we can/should make travis test them regularly.

I am not sure I know what doing here, so this is probably more a call for action than a proper PR.

* Use docker for doctest in Travis
  • Loading branch information
arnaud-morvan authored and ghtmtt committed Mar 30, 2019
1 parent a264f25 commit 48421e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: python
python:
- "3.5"

services:
- docker

cache:
apt: true
pip: true
Expand Down Expand Up @@ -50,6 +53,7 @@ install:

script:
- make html
- make -f docker.mk doctest

#after_success:
# - ./scripts/ci/deploy-docs.sh
1 change: 1 addition & 0 deletions docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
doctest:
docker build -t qgis/documentation:latest -f doctest.dockerfile .
docker run --rm \
--env=QGIS_PREFIX_PATH=/usr \
--user=$(shell id -u) \
--volume=$(PWD):/documentation \
qgis/documentation:latest

0 comments on commit 48421e7

Please sign in to comment.