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

Commit 9e35c68

Browse files
authored
Merge pull request #54 from keybase/david/sphinx-build-test
Verify sphinx documentation build in circle
2 parents 79a7d86 + 1ec5027 commit 9e35c68

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 9 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: circleci/python:2.7.16
32+
steps:
33+
- checkout
34+
- run: sudo pip install sphinx recommonmark sphinx_rtd_theme
35+
- run: cd docs && make html
2936
publish-github-release:
3037
docker:
3138
- image: circleci/golang:1.11
@@ -44,6 +51,7 @@ workflows:
4451
- integration
4552
- unit
4653
- lint
54+
- sphinx-build
4755
- publish-github-release:
4856
requires:
4957
- integration

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)