Skip to content

Commit

Permalink
Add static pages to Lobster (#82)
Browse files Browse the repository at this point in the history
Make static pages into LOBSTER
  • Loading branch information
DiFerMa authored Sep 30, 2024
1 parent 7017e87 commit 982b9ba
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 4 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy static content to Pages

on:
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Generate docs
run: |
make docs
env:
PYTHONPATH: "."
- name: Building code coverage report
run: |
make system-tests unit-tests
make coverage
mv htmlcov docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@ coverage:

test-ci: system-tests unit-tests coverage
util/check_local_modifications.sh

docs:
rm -rf docs
mkdir docs
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ The following verification and miscellaneous frameworks are supported:

## Documentation

* Writing [configuration files](docs/config_files.md) for LOBSTER.
* Writing [configuration files](documentation/config_files.md) for LOBSTER.
* It is easy to expand the languages and activities supported by
LOBSTER by adding new tracing tools, as long as they create data in
the [common interchange format](docs/schemas.md) for LOBSTER.
the [common interchange format](documentation/schemas.md) for LOBSTER.

(More to come...)

Expand All @@ -67,6 +67,10 @@ The individual packages that `bmw-lobster` depends on are:
* `bmw-lobster-tool-json` (for activities in JSON)
* `miss_hit` (for MATLAB/Octave code or Simulink models)

### For LOBSTER developers

* [Code Coverage Report](https://bmw-software-engineering.github.io/lobster/htmlcov/index.html)

## Planned inputs

The following inputs are planned but not implemeted yet:
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion integration-tests/projects/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ html_report.html: cppcode.lobster gtests.lobster mcode.lobster system-requiremen
@lobster-online-report
@cp report.lobster report.reference_output
@lobster-html-report
@cp lobster_report.html ../../../docs/example_report.html
@cp lobster_report.html ../../../documentation/example_report.html
@lobster-ci-report | tee ci_report.reference_output

cppcode.lobster: foo.h foo.cpp
Expand Down
2 changes: 1 addition & 1 deletion packages/lobster-tool-json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Then you can use `--test-list=vectors` to identify the correct list.
Note: This tool is pretty limited. For the obvious cases it works
pretty well, but if you have a more complex test definition in JSON
then you will need to write your own adaptor [using the documented
schema](https://github.com/bmw-software-engineering/lobster/blob/main/docs/schemas.md).
schema](https://github.com/bmw-software-engineering/lobster/blob/main/documentation/schemas.md).

## Copyright & License information

Expand Down

0 comments on commit 982b9ba

Please sign in to comment.