Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

add RTD config file to fix Python version issue #1453

Merged
merged 1 commit into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ try {
node {
checkout scm
stage(stage_name + 'Build') {
def container = docker.image("python:3-alpine").inside() {
// Python image version should be set to the same as in readthedocs.yml
// to make sure we test with the same version that RTD will use
def container = docker.image("python:3.7-alpine").inside() {
try {
sh 'pip install -r docs/requirements.txt'
sh 'mkdocs build -s'
Expand Down
17 changes: 17 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# readthedocs.yml

version: 2

build:
image: latest

python:
# Python version should be set to this one too in the Jenkinsfile to
# make sure we test with the same version that RTD will use
version: 3.7
install:
- requirements: docs/requirements.txt

mkdocs:
configuration: mkdocs.yml
fail_on_warning: false