forked from vieter-v/libvieter
chore: better separate ci jobs
parent
2cc974accc
commit
8609769389
|
@ -0,0 +1,15 @@
|
|||
variables:
|
||||
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
|
||||
|
||||
branches:
|
||||
exclude: [ main ]
|
||||
platform: linux/amd64
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: *image
|
||||
pull: true
|
||||
commands:
|
||||
- make lint
|
||||
when:
|
||||
event: [push, pull_request]
|
|
@ -0,0 +1,18 @@
|
|||
variables:
|
||||
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
|
||||
|
||||
branches:
|
||||
exclude: [ main ]
|
||||
platform: linux/amd64
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
pipeline:
|
||||
test:
|
||||
image: *image
|
||||
pull: true
|
||||
commands:
|
||||
- make test-mem
|
||||
when:
|
||||
event: [push, pull_request]
|
|
@ -11,16 +11,9 @@ branches:
|
|||
platform: ${PLATFORM}
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: *image
|
||||
pull: true
|
||||
commands:
|
||||
- make lint
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
build:
|
||||
image: *image
|
||||
pull: true
|
||||
commands:
|
||||
- make
|
||||
- make clean
|
5
Makefile
5
Makefile
|
@ -48,6 +48,11 @@ $(BUILD_DIR)/$(SRC_DIR)/%.c.o: $(SRC_DIR)/%.c
|
|||
test: build-test
|
||||
@ $(foreach bin,$(BINS_TEST),./$(bin);)
|
||||
|
||||
.PHONY: test-mem
|
||||
test-mem: build-test
|
||||
@ $(foreach bin,$(BINS_TEST),valgrind --tool=memcheck --error-exitcode=1 \
|
||||
--track-origins=yes --leak-check=full ./$(bin);)
|
||||
|
||||
.PHONY: build-test
|
||||
build-test: $(BINS_TEST)
|
||||
|
||||
|
|
Loading…
Reference in New Issue