Verified Commit d2268f8c authored by Karel Koci's avatar Karel Koci 🤘

Add gitlab pages

parent 5ef43545
Updater-ng
==========
Documentation
-------------
* [Language description](docs/language.html)
Other pages
-----------
* [Automaticky generated test coverage](coverage/index.html).
* [Documentation index](docindex.html)
......@@ -29,3 +29,5 @@ tests/check-compiled
tests/luacheck-compiled
tests/arguments
testdir
# Gitlab pages
pages
......@@ -2,6 +2,7 @@ image: gl-ci-turris-testing
stages:
- test
- pages
before_script:
- git submodule init
......@@ -20,3 +21,22 @@ test_busybox:
script:
- BUSYBOX_EXEC=/bin/busybox make check
pages:
stage: pages
script:
- rm -rf public
- mkdir public
- make COV=y
- make COV=y test test-sys
- make COV=y coverage
- markdown .doc_index.md > public/index.html
- utils/gendocindex.sh | markdown > public/docindex.html
- cp -r docs public/docs
- cp -r coverage public/coverage
artifacts:
when: on_success
paths:
- public
only:
- master
#!/bin/sh
# Expected to be executed in project root and prints out markdown.
# It expects that all documentation is already compiled.
echo "Documentation index"
echo "==================="
echo
for f in docs/*.html; do
ff="$(basename "$f")"
ff="${ff%.html}"
echo "* [$ff]($f)"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment