Merge pull request #39 from drowe67/ms-ctest-doc

Fix issue preventing documentation ctest from executing in GitHub environment.
pull/49/head
drowe67 2023-12-13 18:19:08 +10:30 committed by GitHub
commit cdd51b01a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -21,7 +21,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind clang-format
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind clang-format texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-science texmaker texlive-bibtex-extra
- name: Create Build Directory
shell: bash
@ -50,7 +50,7 @@ jobs:
- name: Run ctests
working-directory: ${{github.workspace}}/build_linux
shell: bash
run: ctest --output-on-failure -E test_codec2_doc
run: ctest --output-on-failure
- name: Test library installation
working-directory: ${{github.workspace}}/build_linux

View File

@ -20,10 +20,10 @@ PATH := $(PATH):$(CODEC2_BINARY)/src
PLOT_FILES := hts2a_37_sn.tex hts2a_37_sw.tex hts2a_37_lpc_lsp.tex hts2a_37_lpc_pf.tex
$(DOCNAME).pdf: $(PLOT_FILES) $(DOCNAME).tex $(DOCNAME)_refs.bib
pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
bibtex $(JOBNAME).aux
pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
$(PLOT_FILES):
echo $(PATH)

View File

@ -9,14 +9,14 @@
\usepackage{catchfile}
\usepackage{siunitx}
\CatchFileDef{\headfull}{../.git/HEAD}{}
\StrGobbleRight{\headfull}{1}[\head]
\StrBehind[2]{\head}{/}[\branch]
\IfFileExists{../.git/refs/heads/\branch}{%
\CatchFileDef{\commit}{../.git/refs/heads/\branch}{}}{%
\newcommand{\commit}{\dots~(in \emph{packed-refs})}}
\newcommand{\gitrevision}{%
\StrLeft{\commit}{7}%
\immediate\write18{git log -n1 --oneline | awk '{print $1;}' > gitrevision.txt}
\input{gitrevision.txt}
}
\newcommand{\branch}{%
\immediate\write18{git branch --show-current > gitbranch.txt}
\input{gitbranch.txt}
}
\title{Codec 2}