Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
ec74ed71
Commit
ec74ed71
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add the Coverity scan support (for *nix builds only)
parent
806bf8b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/testbuild.js
+23
-8
23 additions, 8 deletions
exec/testbuild.js
with
23 additions
and
8 deletions
exec/testbuild.js
+
23
−
8
View file @
ec74ed71
...
@@ -7,11 +7,14 @@
...
@@ -7,11 +7,14 @@
require
(
"
smbdefs.js
"
,
'
SMB_PRIORITY_HIGHEST
'
);
require
(
"
smbdefs.js
"
,
'
SMB_PRIORITY_HIGHEST
'
);
var
keep
=
false
;
var
keep
=
false
;
var
cov_token
;
for
(
i
=
0
;
i
<
argc
;
i
++
)
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
if
(
argv
[
i
]
==
"
-k
"
)
if
(
argv
[
i
]
==
"
-k
"
)
keep
=
true
;
keep
=
true
;
else
if
(
argv
[
i
].
indexOf
(
'
-cov-token=
'
)
==
0
)
{
cov_token
=
argv
[
i
].
slice
(
11
);
}
}
var
date_str
=
strftime
(
"
%b-%d-%Y
"
);
/* mmm-dd-yyyy */
var
date_str
=
strftime
(
"
%b-%d-%Y
"
);
/* mmm-dd-yyyy */
var
temp_dir
=
backslash
(
system
.
temp_path
)
+
"
sbbs-
"
+
date_str
;
var
temp_dir
=
backslash
(
system
.
temp_path
)
+
"
sbbs-
"
+
date_str
;
...
@@ -48,6 +51,7 @@ var exclude_dirs = [
...
@@ -48,6 +51,7 @@ var exclude_dirs = [
"
install
"
,
"
install
"
,
"
text
"
,
"
text
"
,
"
web
"
,
"
web
"
,
"
webv4
"
,
"
xtrn
"
,
"
xtrn
"
,
"
src/crt
"
,
"
src/crt
"
,
"
src/doors
"
,
"
src/doors
"
,
...
@@ -88,7 +92,7 @@ var builds
...
@@ -88,7 +92,7 @@ var builds
/* Platform-specific (or non-ported) projects */
/* Platform-specific (or non-ported) projects */
if
(
platform
==
"
win32
"
)
{
if
(
platform
==
"
win32
"
)
{
/* Requires Visual C++ 2019 */
/* Requires Visual C++ 2019 */
builds
.
push
([
"
src/sbbs3
"
,
'
build
.bat /v:m
"/p:Configuration=Release" "
/p:WarningLevel=0
"
'
builds
.
push
([
"
src/sbbs3
"
,
'
release
.bat /v:m /p:WarningLevel=0
'
,
"
>
"
+
build_output
]);
,
"
>
"
+
build_output
]);
/* Requires C++Builder */
/* Requires C++Builder */
builds
.
push
([
"
src/xpdev
"
,
"
make
"
builds
.
push
([
"
src/xpdev
"
,
"
make
"
...
@@ -103,7 +107,7 @@ if(platform=="win32") {
...
@@ -103,7 +107,7 @@ if(platform=="win32") {
,
"
>
"
+
build_output
]);
,
"
>
"
+
build_output
]);
}
else
{
/* Unix */
}
else
{
/* Unix */
builds
.
unshift
([
"
src/sbbs3
"
,
"
make git_branch.h git_hash.h
"
]);
builds
.
unshift
([
"
src/sbbs3
"
,
"
make git_branch.h git_hash.h
"
]);
builds
.
push
([
"
src/sbbs3
"
,
"
make RELEASE=1 all
"
,
"
2>
"
+
build_output
]);
builds
.
push
([
"
src/sbbs3
"
,
"
cov-build --dir ../../cov-int
make RELEASE=1 all
"
,
"
2>
"
+
build_output
]);
builds
.
push
([
"
src/sbbs3
"
,
"
make RELEASE=1 gtkutils
"
,
"
2>
"
+
build_output
]);
builds
.
push
([
"
src/sbbs3
"
,
"
make RELEASE=1 gtkutils
"
,
"
2>
"
+
build_output
]);
}
}
...
@@ -120,6 +124,8 @@ var win32_dist
...
@@ -120,6 +124,8 @@ var win32_dist
"
3rdp/win32.release/mozjs/bin/*.dll
"
,
"
3rdp/win32.release/mozjs/bin/*.dll
"
,
"
3rdp/win32.release/nspr/bin/*.dll
"
,
"
3rdp/win32.release/nspr/bin/*.dll
"
,
"
3rdp/win32.release/cryptlib/bin/*.dll
"
,
"
3rdp/win32.release/cryptlib/bin/*.dll
"
,
"
3rdp/win32.release/libarchive/bin/*.dll
"
,
"
3rdp/win32.release/zlib/bin/*.dll
"
,
"
s:/sbbs/exec/dosxtrn.exe
"
"
s:/sbbs/exec/dosxtrn.exe
"
];
];
...
@@ -266,6 +272,15 @@ if(platform=="win32") {
...
@@ -266,6 +272,15 @@ if(platform=="win32") {
cmd_line
=
"
pkzip25 -add
"
+
archive
cmd_line
=
"
pkzip25 -add
"
+
archive
+
"
-exclude=v4upgrade.exe
"
+
win32_dist
.
join
(
"
"
);
+
"
-exclude=v4upgrade.exe
"
+
win32_dist
.
join
(
"
"
);
}
else
{
}
else
{
cmd_line
=
'
tar czvf sbbs-cov.tgz cov-int &&
'
+
'
curl --form token=
'
+
cov_token
+
'
'
+
'
--form email=rob@synchro.net
'
+
'
--form file=@sbbs-cov.tgz
'
+
'
--form version=
'
+
system
.
version
+
system
.
revision
+
'
'
+
'
--form description="Synchronet for
'
+
system
.
platform
+
'
"
'
+
'
https://scan.coverity.com/builds?project=Synchronet
'
;
log
(
LOG_INFO
,
"
Executing:
"
+
cmd_line
);
system
.
exec
(
cmd_line
);
archive
=
"
sbbs_dev.tgz
"
;
archive
=
"
sbbs_dev.tgz
"
;
cmd_line
=
"
pax -s :.*/::p -wzf
"
+
archive
+
"
"
+
nix_dist
.
join
(
"
"
);
cmd_line
=
"
pax -s :.*/::p -wzf
"
+
archive
+
"
"
+
nix_dist
.
join
(
"
"
);
}
}
...
@@ -273,7 +288,7 @@ if(platform=="win32") {
...
@@ -273,7 +288,7 @@ if(platform=="win32") {
log
(
LOG_INFO
,
"
Executing:
"
+
cmd_line
);
log
(
LOG_INFO
,
"
Executing:
"
+
cmd_line
);
system
.
exec
(
cmd_line
);
system
.
exec
(
cmd_line
);
dest
=
file_area
.
dir
[
"
sbbs
"
].
path
+
archive
;
dest
=
file_area
.
dir
[
"
sbbs
"
].
path
+
archive
;
log
(
LOG_INFO
,
format
(
"
Copying %s to %s
"
,
archive
,
dest
));
log
(
LOG_INFO
,
format
(
"
Copying %s to %s
"
,
archive
,
dest
));
if
(
!
file_copy
(
archive
,
dest
))
if
(
!
file_copy
(
archive
,
dest
))
...
@@ -320,8 +335,8 @@ function send_email(subject, body, priority)
...
@@ -320,8 +335,8 @@ function send_email(subject, body, priority)
return
(
false
);
return
(
false
);
}
}
var
hdr
=
{
var
hdr
=
{
from
:
"
Synchronet testbuild.js
"
,
from
:
"
Synchronet testbuild.js
"
,
subject
:
subject
||
(
system
.
platform
+
"
build failure
"
),
subject
:
subject
||
(
system
.
platform
+
"
build failure
"
),
priority
:
priority
priority
:
priority
};
};
...
...
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