-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (35 loc) · 870 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
default:
image: archlinux
before_script:
- pacman -Syyuu --noconfirm cmake make gcc git
- git submodule update --init --remote --recursive
stages:
- build
- test
build-job:
stage: build
script:
- echo "Downloading dependecies"
- pushd ..
- git clone --depth=1 https://gitlab.com/malformed-c/engi_common.git
- popd
- echo "Done"
- echo "Compiling the code..."
- cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_ASAN=ON -B build/
- cmake --build build/
- echo "Compile complete."
artifacts:
paths:
- build/libengi_queue.so
- build/libengi_queue.a
- build/engi_queue_static_test
- build/engi_queue_shared_test
cache:
paths:
- "build/CMakeFiles"
- "build/CMakeCache.txt"
test-job:
stage: test
script:
- ./build/engi_queue_static_test
- ./build/engi_queue_shared_test