summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-12-18 16:29:17 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-12-18 16:29:17 (GMT)
commit9c96716dc6ace56f8ed210789ce1c49e39f7c638 (patch)
treebeade725262f476319df4f592dcfe4e67ce940eb /.github
parentd76b1ec4a5f009251dc6e4904454c9f40216e874 (diff)
downloadDoxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.zip
Doxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.tar.gz
Doxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.tar.bz2
Extend tests with some other default tests
During the change to GitHub Actions the extra tests as added in #8217 were lost: Extend tests with generating xhtml, docbook, rtf to see if the files can be generated and build, not for Windows as it loos like that the "latex" command cannot always be run (problems with test 28). Check also the generated xsd files in xml mode. Note for the new checks no comparison is done with previous versions.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml86
1 files changed, 79 insertions, 7 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 6f1e0f2..3d1f7f3 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -132,9 +132,19 @@ jobs:
run: sudo apt-get install ghostscript
if: matrix.config.os == 'ubuntu-latest'
-# - name: Install Ghostscript (Windows)
-# run: choco install ghostscript
-# if: matrix.config.os == 'windows-latest'
+ - name: Install Ghostscript (Windows)
+ run:
+ choco install ghostscript
+ if: matrix.config.os == 'windows-latest'
+
+ - name: Setting Ghostscript paths (Windows)
+ shell: bash
+ run: |
+ echo "C:/Program Files (x86)/gs/gs9.53.3/bin/" >> $GITHUB_PATH
+ echo "C:/Program Files/gs/gs9.53.3/bin/" >> $GITHUB_PATH
+ export PATH="/c/Program Files (x86)/gs/gs9.53.3/bin/:$PATH"
+ export PATH="/c/Program Files/gs/gs9.53.3/bin/:$PATH"
+ if: matrix.config.os == 'windows-latest'
- name: Install xmllint (Linux)
run: sudo apt-get install libxml2-utils
@@ -155,6 +165,19 @@ jobs:
choco install winflexbison
if: matrix.config.os == 'windows-latest'
+ - name: Install Graphviz (Linux)
+ run: sudo apt-get install graphviz
+ if: matrix.config.os == 'ubuntu-latest'
+
+ - name: Install Graphviz (MacOS)
+ run: brew install graphviz
+ if: matrix.config.os == 'macos-latest'
+
+ - name: Install Graphviz (Windows)
+ run:
+ choco install graphviz.portable
+ if: matrix.config.os == 'windows-latest'
+
# - name: Install Perl (Windows)
# run:
# choco install activeperl
@@ -169,7 +192,7 @@ jobs:
refreshenv
if: matrix.config.os == 'windows-latest'
- - name: Check tool versions
+ - name: Check tool versions (Linux / MacOS)
shell: bash
run: |
echo "=== perl ===";
@@ -182,10 +205,41 @@ jobs:
latex --version;
echo "=== bibtex ===";
bibtex --version
+ echo "=== dvips ===";
+ dvips --version
+ echo "=== bison ===";
+ bison --version;
+ echo "=== flex ===";
+ flex --version;
+ echo "=== dot ===";
+ dot -V;
+ echo "=== ghostscript ===";
+ gs --version;
+ if: matrix.config.os != 'windows-latest'
+
+ - name: Check tool versions (Windows)
+ shell: bash
+ run: |
+ echo "=== perl ===";
+ perl --version;
+ echo "=== python ===";
+ python --version;
+ echo "=== cmake ===";
+ cmake --version;
+ echo "=== latex ===";
+ latex --version;
+ echo "=== bibtex ===";
+ bibtex --version
+ echo "=== dvips ===";
+ dvips --version
echo "=== bison ===";
win_bison --version;
echo "=== flex ===";
win_flex --version;
+ echo "=== dot ===";
+ dot -V;
+ echo "=== ghostscript ===";
+ gswin64c --version;
if: matrix.config.os == 'windows-latest'
- name: Configure
@@ -229,7 +283,7 @@ jobs:
message(FATAL_ERROR "Build failed")
endif()
- - name: Run tests
+ - name: Run tests (Linux / MacOS)
shell: cmake -P {0}
run: |
include(ProcessorCount)
@@ -238,12 +292,30 @@ jobs:
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
execute_process(
- COMMAND cmake --build build --target tests
+ COMMAND cmake --build build --target tests TEST_FLAGS="--xml --xmlxsd --xhtml --docbook --rtf"
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Running tests failed!")
endif()
+ if: matrix.config.os != 'windows-latest'
+
+ - name: Run tests (Windows)
+ shell: cmake -P {0}
+ run: |
+ include(ProcessorCount)
+ ProcessorCount(N)
+
+ set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
+
+ execute_process(
+ COMMAND cmake --build build --target tests TEST_FLAGS="--xml --xmlxsd"
+ RESULT_VARIABLE result
+ )
+ if (NOT result EQUAL 0)
+ message(FATAL_ERROR "Running tests failed!")
+ endif()
+ if: matrix.config.os == 'windows-latest'
- name: Generate documentation
shell: cmake -P {0}
@@ -253,6 +325,6 @@ jobs:
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
- message(FATAL_ERROR "Bad exit status")
+ message(FATAL_ERROR "Building documentation failed")
endif()
if: matrix.config.os != 'windows-latest'