From db77a9dce4c4a45af118734774f1658c7ae1a652 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sat, 14 Jul 2018 11:05:41 -0700 Subject: [PATCH] Disable container-based build so we can use sudo. --- .travis.yml | 8 +++++++- util/deploy_docs_from_travis.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0306bff0..4238a719 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,5 +27,11 @@ addons: - python3-markdown - ruby-sass -sudo: false # Enable container-based builds. +# Can't do container-based builds for now because installing the custom +# Pygments lexer to generate the docs requires sudo. :( If that changes, +# uncomment the next line and delete the "sudo" and "dist" lines. +# sudo: false # Enable container-based builds. +sudo: required +dist: trusty + script: make WREN_CFLAGS=${WREN_OPTIONS} ${CI_ARCHS} diff --git a/util/deploy_docs_from_travis.sh b/util/deploy_docs_from_travis.sh index ae5e5b9c..f1fffdb8 100644 --- a/util/deploy_docs_from_travis.sh +++ b/util/deploy_docs_from_travis.sh @@ -3,7 +3,7 @@ set -e # Install the Wren Pygments lexer. cd util/pygments-lexer -python setup.py develop +python sudo setup.py develop cd ../.. # Build the docs.