Skip to content

Commit

Permalink
Merge branch 'main' into bad-login-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vlussenburg authored Aug 22, 2023
2 parents d514e7a + 0160d5f commit f922630
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ before_script:

stages:
- test
- coverage

test-job:
stage: test
Expand All @@ -19,29 +18,21 @@ test-job:
- curl -Lo mapi $MAYHEM_URL/cli/mapi/linux-musl/latest/mapi && chmod +x mapi
- ./mapi login $MAPI_TOKEN
- ./mapi run forallsecure-demo/mapi-action-examples/fastapi auto "http://localhost:8000/openapi.json" --url "http://localhost:8000/" --junit junit.xml --sarif mapi.sarif --html mapi.html
- pgrep python3 | xargs kill || true
artifacts:
when: always
paths:
- junit.xml
- mapi.html
- mapi.sarif
reports:
junit: junit.xml

coverage-report:
stage: coverage
when: always
script:
- pgrep python3 | xargs kill || true; sleep 1
- python3 -m coverage report
- python3 -m coverage xml
- python3 -m coverage html -d coverage_html_report
coverage: '/TOTAL.*\s+(\d+\%)$/' # regex to extract coverage percentage
artifacts:
when: always
paths:
- junit.xml
- mapi.html
- mapi.sarif
- coverage.xml
- coverage_html_report/
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml

0 comments on commit f922630

Please sign in to comment.