2017-08-30 10:42:36 -07:00
|
|
|
image: registry.gitlab.com/mgerhardy/engine-docker:master
|
2016-07-12 11:30:03 -07:00
|
|
|
|
2017-09-22 12:36:32 -07:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- analyse
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mkdir -p ccache
|
|
|
|
- export CCACHE_BASEDIR=${PWD}
|
|
|
|
- export CCACHE_DIR=${PWD}/ccache
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- ccache/
|
|
|
|
|
2016-05-05 11:13:57 -07:00
|
|
|
build:
|
2017-09-22 12:36:32 -07:00
|
|
|
stage: build
|
2016-05-05 11:13:57 -07:00
|
|
|
script:
|
2016-07-12 11:51:04 -07:00
|
|
|
- make -j 4
|
2017-09-22 12:36:32 -07:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-10-04 22:53:23 -07:00
|
|
|
- build/Debug
|
2017-09-22 12:36:32 -07:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
script:
|
|
|
|
- cd build/Debug
|
2017-10-04 22:53:23 -07:00
|
|
|
- ./tests
|
2017-09-22 12:36:32 -07:00
|
|
|
|
2017-10-07 08:30:10 -07:00
|
|
|
.analyse:cppcheck:
|
2017-09-22 12:36:32 -07:00
|
|
|
stage: analyse
|
|
|
|
script:
|
2017-11-18 06:08:01 -08:00
|
|
|
- cppcheck --xml-version=2 -j 4 --enable=all --config-exclude=contrib/libs/ --project=build/Debug/compile_commands.json src 2> cppcheck.xml
|
2017-09-22 12:36:32 -07:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-11-18 06:08:01 -08:00
|
|
|
- cppcheck.xml
|
2017-09-22 12:36:32 -07:00
|
|
|
|
|
|
|
analyse:valgrind:
|
|
|
|
stage: analyse
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
script:
|
|
|
|
- cd build/Debug
|
2017-11-18 06:08:01 -08:00
|
|
|
- valgrind --xml=yes --xml-file=valgrind.xml ./tests --gtest_filter=CoreTest.*:CameraTest.*:StringTest.*
|
2017-09-22 12:36:32 -07:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-11-18 06:08:01 -08:00
|
|
|
- build/Debug/valgrind.xml
|
2016-08-05 11:55:11 -07:00
|
|
|
|
|
|
|
pages:
|
|
|
|
script:
|
|
|
|
- make doc
|
2017-08-20 10:55:42 -07:00
|
|
|
- mv build/Debug/html/ public/
|
2016-08-05 11:55:11 -07:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
2016-09-05 11:48:35 -07:00
|
|
|
- master
|