mirror of https://github.com/openXC7/prjxray.git
run htmlgen in Travis CI
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
parent
a0658d2d6a
commit
27a8e27381
|
|
@ -32,3 +32,6 @@ jobs:
|
|||
script:
|
||||
- make format
|
||||
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
|
||||
|
||||
- name: "HTML generation"
|
||||
script: make test-htmlgen
|
||||
|
|
|
|||
8
Makefile
8
Makefile
|
|
@ -56,6 +56,14 @@ test-cpp:
|
|||
|
||||
.PHONY: test test-py test-cpp
|
||||
|
||||
# Run HTML test
|
||||
# ------------------------
|
||||
|
||||
test-htmlgen:
|
||||
cd htmlgen && source htmlgen.sh
|
||||
|
||||
.PHONY: test-htmlgen
|
||||
|
||||
# Auto formatting of code.
|
||||
# ------------------------
|
||||
FORMAT_EXCLUDE = $(foreach x,$(ALL_EXCLUDE),-and -not -path './$(x)/*') -and -not -name *.bit
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
SETTINGS=../settings/*
|
||||
|
||||
for setting in $SETTINGS
|
||||
do
|
||||
echo ""
|
||||
echo "============================================="
|
||||
echo "Generating HTML for ${setting%.sh}"
|
||||
echo "============================================="
|
||||
echo ""
|
||||
source ../settings/$setting
|
||||
./htmlgen.py
|
||||
done
|
||||
Loading…
Reference in New Issue