forked from GothicKit/ZenKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (36 loc) · 954 Bytes
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
image: gcc
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
job-build:
stage: build
before_script:
- apt update -y
- apt upgrade -y
- apt install cmake -y
script:
- mkdir "$CI_PROJECT_DIR/build/"
- cd "$CI_PROJECT_DIR/build/"
- cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ..
- cd "$CI_PROJECT_DIR/build/"
- make
artifacts:
paths:
- build/phoenix-tests
- build/tools/pxmdl/pxmdl
- build/tools/pxscrdump/pxscrdump
- build/tools/pxtex/pxtex
- build/tools/pxvdfs/pxvdfs
job-test:
stage: test
script:
- cd "$CI_PROJECT_DIR/tests/"
- $CI_PROJECT_DIR/build/phoenix-tests -tse=messages,script,world -r=junit -o=report.xml
needs:
- job-build
artifacts:
when: always
reports:
junit: $CI_PROJECT_DIR/tests/report.xml