Skip to content

Commit

Permalink
Merge pull request #1728 from buildtesters/strict_readthedocs_build
Browse files Browse the repository at this point in the history
enable fail_on_warning in .readthedocs.yaml
  • Loading branch information
shahzebsiddiqui authored Mar 13, 2024
2 parents cd75c83 + e06a27e commit c2fb5e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
sphinx:
builder: html
configuration: docs/conf.py
#fail_on_warning: true
fail_on_warning: true

build:
os: "ubuntu-20.04"
Expand Down
16 changes: 8 additions & 8 deletions buildtest/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
# dictionary used for storing status of builds
USER_SETTINGS_FILE = os.path.join(BUILDTEST_USER_HOME, "config.yml")

# default configuration file
DEFAULT_SETTINGS_FILE = os.path.join(
BUILDTEST_ROOT, "buildtest", "settings", "config.yml"
)

VAR_DIR = os.path.join(BUILDTEST_ROOT, "var")
# VAR_DIR = os.path.join(BUILDTEST_ROOT, "var")
ci_dir = os.getenv("BUILDTEST_CI_DIR")

if ci_dir:
VAR_DIR = os.path.join(ci_dir, "var")
settings_file = os.path.join(ci_dir, "config.yml")
DEFAULT_SETTINGS_FILE = settings_file

DEFAULT_SETTINGS_FILE = os.path.join(ci_dir, "config.yml")
else:
VAR_DIR = os.path.join(BUILDTEST_ROOT, "var")
# default configuration file
DEFAULT_SETTINGS_FILE = os.path.join(
BUILDTEST_ROOT, "buildtest", "settings", "config.yml"
)

BUILDTEST_LOGFILE = os.path.join(VAR_DIR, "buildtest.log")
DEFAULT_LOGDIR = os.path.join(VAR_DIR, "logs")
Expand Down

0 comments on commit c2fb5e7

Please sign in to comment.