add gitlab CI
Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
parent
643093d7e0
commit
033f1d5173
1 changed files with 33 additions and 0 deletions
33
.gitlab-ci.yml
Normal file
33
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
image: debian:latest
|
||||
|
||||
before_script:
|
||||
- apt update
|
||||
- apt install -y make
|
||||
- apt install -y gcc
|
||||
- export CC=$(which gcc)
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- echo "compiling with $CC"
|
||||
- make alog-so
|
||||
artifacts:
|
||||
paths:
|
||||
- target/alog.so
|
||||
expire_in: 1 week
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- make alog-tests
|
||||
|
||||
valgrind:
|
||||
stage: test
|
||||
script:
|
||||
- apt install -y valgrind
|
||||
- make log_test
|
||||
- valgrind -s --leak-check=full --show-leak-kinds=all --error-exitcode=1 target/log_test
|
||||
Loading…
Add table
Add a link
Reference in a new issue