Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
open-source-case-studies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
contra-bit
open-source-case-studies
Commits
227272f3
Commit
227272f3
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
add Docker-based CI integration with SARIF report artifacts
parent
9d9230e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
Makefile
+5
-0
5 additions, 0 deletions
Makefile
Makefile.common
+8
-0
8 additions, 0 deletions
Makefile.common
frama-c
+1
-1
1 addition, 1 deletion
frama-c
with
31 additions
and
1 deletion
.gitignore
+
4
−
0
View file @
227272f3
...
...
@@ -16,3 +16,7 @@ flamegraph.txt
benchs-value.csv
bench_clone
# .sarif reports are produced as CI artifacts, but we do not want to version
# them, due to their size and the redundancy w.r.t. Eva logs.
*.sarif
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
13
−
0
View file @
227272f3
default
:
image
:
framac/frama-c:dev
build
:
tags
:
-
docker
script
:
-
make -B all >/dev/null
-
git diff --exit-code
-
make sarif
artifacts
:
paths
:
-
"
*/.frama-c/*.sarif"
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
0
View file @
227272f3
...
...
@@ -111,6 +111,11 @@ parse: $(addsuffix .parse,$(TARGETS))
stats
:
$(addsuffix .stats
,
$(TARGETS))
%.sarif
:
$(
MAKE
)
-C
$*
/.frama-c sarif
sarif
:
$(addsuffix .sarif
,
$(TARGETS))
display-targets
:
@
echo
$(
foreach target,
$(
TARGETS
)
,
\
$(
addprefix
$(
target
)
/,
\
...
...
This diff is collapsed.
Click to expand it.
Makefile.common
+
8
−
0
View file @
227272f3
# Makefile optionally included by each GNUmakefile in the target directories.
# Note: it must be included at the end of the makefiles,
# to ensure e.g. TARGETS and other variables are properly defined.
### Extra targets for SARIF report
# '-noautoload-plugins -load-module eva,markdown_report' minimize loading time
# of several dozens of calls to Frama-C
%.sarif
:
%.eva
$(
FRAMAC
)
-no-autoload-plugins
-load-module
eva,markdown_report
-load
$^
/framac.sav
-mdr-gen
sarif
-mdr-no-print-libc
-mdr-sarif-deterministic
-mdr-out
$@
sarif
:
$(TARGETS:%.eva=%.sarif)
This diff is collapsed.
Click to expand it.
frama-c
@
18624738
Compare
292964f3
...
18624738
Subproject commit
292964f3767f94f2e4a45e347aa33fde15a225d1
Subproject commit
186247381f19703b1572dba997865645cd80d5e9
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment