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:
|
|
|
|
- build/Debug/tests
|
|
|
|
- build/Debug/compile_commands.json
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
script:
|
|
|
|
- cd build/Debug
|
|
|
|
- ./tests --gtest_filter=-DatabaseModelTest.*:ConnectionPoolTest.*:WorldRendererTest.testCreate:UIShaderTest.*:FrontendShaderTest.*:VoxFormatTest.testSave
|
|
|
|
|
|
|
|
analyse:cppcheck:
|
|
|
|
stage: analyse
|
|
|
|
script:
|
|
|
|
- cppcheck --enable=all --project=build/Debug/compile_commands.json src 2> cppcheck.log
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- cppcheck.log
|
|
|
|
|
|
|
|
analyse:valgrind:
|
|
|
|
stage: analyse
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
script:
|
|
|
|
- cd build/Debug
|
|
|
|
- valgrind ./tests --gtest_filter=-DatabaseModelTest.*:ConnectionPoolTest.*:WorldRendererTest.testCreate:UIShaderTest.*:FrontendShaderTest.* 2> valgrind.log
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- valgrind.log
|
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
|