vengi/.gitlab-ci.yml

61 lines
1.0 KiB
YAML
Raw Normal View History

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/
build:
2017-09-22 12:36:32 -07:00
stage: build
script:
2016-07-12 11:51:04 -07:00
- make -j 4
2017-09-22 12:36:32 -07:00
artifacts:
paths:
- build/Debug
2017-09-22 12:36:32 -07:00
test:
stage: test
dependencies:
- build
script:
- cd build/Debug
- ./tests
2017-09-22 12:36:32 -07:00
.analyse:cppcheck:
2017-09-22 12:36:32 -07:00
stage: analyse
script:
- 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:
- cppcheck.xml
2017-09-22 12:36:32 -07:00
analyse:valgrind:
stage: analyse
dependencies:
- build
script:
- cd build/Debug
- valgrind --xml=yes --xml-file=valgrind.xml ./tests --gtest_filter=CoreTest.*:CameraTest.*:StringTest.*
2017-09-22 12:36:32 -07:00
artifacts:
paths:
- 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