forked from viaduck/mariadbpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
29 lines (26 loc) · 1.04 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
image: viaduck/ci
services:
- mariadb:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
MYSQL_DATABASE: "mariadbpptest"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_RANDOM_ROOT_PASSWORD: "true" # it's not used anyway
stages:
- build # contains build and test and deploy
test:
script:
- mkdir build
- cd build
- cmake ../ -DMARIADBPP_DOC=ON -DMARIADBPP_TEST=ON -DTEST_HOSTNAME=mariadb -DTEST_USERNAME=$MYSQL_USER -DTEST_PASSWORD=$MYSQL_PASSWORD -DTEST_PORT=3306 -DTEST_DATABASE=$MYSQL_DATABASE -DGTEST_SRC_DIR=/usr/src/googletest/
- make
- test/mariadbpp_tests # runs gtest target
- cmake . -DCMAKE_BUILD_TYPE=Debug
- make mariadbpp_coverage # generate code coverage report
- make mariadbpp_doc # generate doxygen code documentation
stage: build
artifacts:
paths:
- build/test/coverage/ # coverage data
- build/doc/html/ # doxygen documentation