From 787305eae54e393cb7c87f6ab687c32c8c00fd37 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 26 Mar 2019 12:32:08 +0100 Subject: [PATCH] Tweak test build to run faster, and adapt CI --- .gitlab-ci.yml | 11 ----------- tests/Makefile | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 899c337be..384befa31 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,17 +3,6 @@ # see https://hub.docker.com/_/gcc/ image: gcc -build: - stage: build - before_script: - - apt update && apt -y install make - script: - - make -C tests - cache: - paths: - - "tests/*.o" - - "tests/test-*" - test: stage: test script: diff --git a/tests/Makefile b/tests/Makefile index 0257f5837..d5295ac13 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -14,10 +14,10 @@ check: all @echo "Success." jit.o: ../jit.h ../jit/*.c - $(CC) $(CFLAGS) $(CPPFLAGS) -flto -I.. -o jit.o -c ../jit/jit.c + $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o jit.o -c ../jit/jit.c test-%: %.c jit.o test.h - $(CC) $(CFLAGS) $(CPPFLAGS) -flto -I.. -o $@ jit.o $< + $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o $@ jit.o $< clean: rm -f $(addprefix test-,$(TESTS))