Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qtquick3d Assimp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Jonas Karlsson
Qtquick3d Assimp
Commits
a15bfceb
Commit
a15bfceb
authored
7 years ago
by
Turo Lamminen
Browse files
Options
Downloads
Patches
Plain Diff
Travis: Add static analysis to build
parent
80ba6d10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.sh
+15
-0
15 additions, 0 deletions
.travis.sh
.travis.yml
+7
-1
7 additions, 1 deletion
.travis.yml
with
22 additions
and
1 deletion
.travis.sh
+
15
−
0
View file @
a15bfceb
...
...
@@ -43,9 +43,24 @@ if [ $ANDROID ]; then
ant
-v
-Dmy
.dir
=
${
TRAVIS_BUILD_DIR
}
-f
${
TRAVIS_BUILD_DIR
}
/port/jassimp/build.xml ndk-jni
fi
if
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
;
then
if
[
$ANALYZE
=
"ON"
]
;
then
if
[
"
$CC
"
=
"clang"
]
;
then
scan-build cmake
-G
"Unix Makefiles"
-DBUILD_SHARED_LIBS
=
OFF
scan-build
--status-bugs
make
-j2
else
cppcheck
--version
generate
\
&&
cppcheck
--error-exitcode
=
1
-j2
-Iinclude
-Icode
code 2> cppcheck.txt
if
[
-s
cppcheck.txt
]
;
then
cat
cppcheck.txt
exit
1
fi
fi
else
generate
\
&&
make
-j4
\
&&
sudo
make
install
\
&&
sudo
ldconfig
\
&&
(
cd test
/unit
;
../../bin/unit
)
fi
fi
This diff is collapsed.
Click to expand it.
.travis.yml
+
7
−
1
View file @
a15bfceb
...
...
@@ -4,7 +4,7 @@ language: cpp
cache
:
ccache
before_install
:
-
if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq && sudo apt-get install cmake && sudo apt-get install cmake python3 && sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
-
if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq && sudo apt-get install cmake
cppcheck
&& sudo apt-get install cmake python3 && sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
-
'
if
[
"$TRAVIS_OS_NAME"
=
"osx"
];
then
if
brew
ls
--versions
cmake
>
/dev/null;
then
echo
cmake
already
installed.;
...
...
@@ -39,6 +39,12 @@ matrix:
-
os
:
linux
compiler
:
gcc
env
:
SHARED_BUILD=ON
-
os
:
linux
compiler
:
gcc
env
:
ANALYZE=ON
-
os
:
linux
compiler
:
clang
env
:
ANALYZE=ON
-
os
:
linux
compiler
:
clang
env
:
ASAN=ON
...
...
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