mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
As requested implement cmake builds and also implement matrix customization to use a static analyzer and also doc gen in only one target to avoid having too many targets
This commit is contained in:
+26
-5
@@ -14,6 +14,17 @@ compiler:
|
|||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
|
env:
|
||||||
|
- |
|
||||||
|
ANALYZE=false
|
||||||
|
DOC=false
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
os: linux
|
||||||
|
compiler: clang
|
||||||
|
env: ANALYZE=true DOC=true
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
@@ -33,13 +44,23 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
autoconf
|
if [ $ANALYZE = "false" ]; then
|
||||||
./configure
|
autoconf
|
||||||
make
|
./configure
|
||||||
|
make
|
||||||
|
mkdir cmake-build
|
||||||
|
cmake -G "Unix Makefiles" -S . -B"./cmake-build"
|
||||||
|
cd cmake-build
|
||||||
|
make
|
||||||
|
else
|
||||||
|
scan-build cmake -G "Unix Makefiles"
|
||||||
|
scan-build --status-bugs -v
|
||||||
|
make
|
||||||
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
if [ $TRAVIS_OS_NAME == linux ]; then
|
if [ $DOC = "true" ]; then
|
||||||
doxygen --version
|
doxygen --version
|
||||||
cd documentation
|
cd documentation
|
||||||
make html
|
make html
|
||||||
@@ -50,4 +71,4 @@ notifications:
|
|||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
- fabien@onepost.net
|
- fabien@onepost.net
|
||||||
|
|
||||||
Reference in New Issue
Block a user