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))