From f8e594c9e99608c36dda1a021cdad553a2b92ef1 Mon Sep 17 00:00:00 2001 From: Bo Zhou <2466956298@qq.com> Date: Tue, 9 Jul 2019 13:25:37 +0800 Subject: [PATCH] add unittest for compling the docs (#87) * add unittest for compling the docs * record the time of change * remove unused requirements * reduce font size of the changelog --- .teamcity/CHANGELOG.md | 3 +++ .teamcity/Dockerfile | 2 +- .teamcity/build.sh | 18 ++++++++++++++++++ CMakeLists.txt | 12 ++++++++++++ docs/test.sh | 7 +++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .teamcity/CHANGELOG.md create mode 100644 docs/test.sh diff --git a/.teamcity/CHANGELOG.md b/.teamcity/CHANGELOG.md new file mode 100644 index 0000000..081d59a --- /dev/null +++ b/.teamcity/CHANGELOG.md @@ -0,0 +1,3 @@ +### [2019-07-09] 1.1-cuda9.0-cudnn7-docs: +add unnit test for compling the docs + - add an envionment `docs` in anaconda diff --git a/.teamcity/Dockerfile b/.teamcity/Dockerfile index ca88356..da98d19 100644 --- a/.teamcity/Dockerfile +++ b/.teamcity/Dockerfile @@ -15,7 +15,7 @@ # A dev image based on paddle production image -FROM parl/parl-test:1.1-cuda9.0-cudnn7-v2 +FROM parl/parl-test:1.1-cuda9.0-cudnn7-docs COPY ./requirements.txt /root/ diff --git a/.teamcity/build.sh b/.teamcity/build.sh index 9e55dcb..1fcb11b 100755 --- a/.teamcity/build.sh +++ b/.teamcity/build.sh @@ -102,6 +102,23 @@ EOF rm -rf ${REPO_ROOT}/build } +function run_docs_test { + #export CUDA_VISIBLE_DEVICES="" + + mkdir -p ${REPO_ROOT}/build + cd ${REPO_ROOT}/build + + cmake .. -DIS_TESTING_DOCS=ON + + cat <