Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 7436c57

Browse files
committed
Build sphinx docs in CI to ensure they build before merging
1 parent a08fe36 commit 7436c57

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ jobs:
2525
- run: "! goimports ./... 2>&1 | read"
2626
- run: "! go mod tidy ./... 2>&1 | read"
2727
- run: go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1
28-
- run: "! golangci-lint 2>&1 | read"
28+
- run: "! golangci-lint 2>&1 | read"
29+
sphinx-build:
30+
docker:
31+
- image:
32+
steps:
33+
- checkout
34+
- cd docs
35+
- make html
2936
publish-github-release:
3037
docker:
3138
- image: circleci/golang:1.11

integrationTest.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ if [ -z "$CIRCLECI" ]; then
88
go test ./... 2>&1 | grep -v 'no test files'
99
fi
1010

11+
# Attempt to build the docs
12+
set +u
13+
if [ -z "$CIRCLECI" ]; then
14+
cd docs/
15+
make html 2>&1 > /dev/null
16+
echo "Successfully built documentation"
17+
cd ../
18+
fi
19+
20+
1121
# Ensure we have the correct environment variables
1222
if [[ -f "tests/env.sh" ]]; then
1323
echo "env.sh already exists, skipping configuring new accounts..."

0 commit comments

Comments
 (0)