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:
parent
e289f88187
commit
787305eae5
2 changed files with 2 additions and 13 deletions
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue