1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-06 12:10:28 +02:00

Tweak test build to run faster, and adapt CI

This commit is contained in:
Andy Wingo 2019-03-26 12:32:08 +01:00
parent e289f88187
commit 787305eae5
2 changed files with 2 additions and 13 deletions

View file

@ -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:

View file

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