tRemove superfluous shells from gitlab CI runner, put memtests into Makefile - … | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit cb7836407f4ee917835b4b5c8104597e1c81b44a | |
parent 30ce42dd3f05c59335a69fb0d4a2b306d6cc6672 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 28 Jun 2019 11:43:38 +0200 | |
Remove superfluous shells from gitlab CI runner, put memtests into Makefile | |
Diffstat: | |
M .gitlab-ci.yml | 6 ++---- | |
M Makefile | 6 ++++++ | |
2 files changed, 8 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml | |
t@@ -2,12 +2,10 @@ build-alpine: | |
stage: build | |
image: alpine:edge | |
before_script: | |
- - apk --no-cache add build-base gnuplot bash zsh valgrind | |
+ - apk --no-cache add build-base gnuplot valgrind | |
script: | |
- make -C examples | |
- - valgrind --error-exitcode=1 --leak-check=full ./1d_fd_simple_shear -h | |
- - valgrind --error-exitcode=1 --leak-check=full ./1d_fd_simple_shear | |
- - valgrind --error-exitcode=1 --leak-check=full ./1d_fd_simple_shear -F | |
+ - make memtest | |
artifacts: | |
paths: | |
- examples/1d_fd_simple_shear.png | |
diff --git a/Makefile b/Makefile | |
t@@ -121,6 +121,12 @@ diurnal.gif: diurnal.mp4 | |
watch: | |
echo $(SRC) $(HDR) | tr ' ' '\n' | entr -s 'make && ./1d_fd_simple_she… | |
+.PHONY: memtest | |
+memtest: $(BIN) | |
+ valgrind --error-exitcode=1 --leak-check=full $(BIN) -h | |
+ valgrind --error-exitcode=1 --leak-check=full $(BIN) | |
+ valgrind --error-exitcode=1 --leak-check=full $(BIN) -F | |
+ | |
clean: | |
$(RM) *.txt | |
$(RM) *.o |