specific job for checkversions

This commit is contained in:
Thomas Bernard 2020-02-08 00:28:14 +01:00
parent cc8257817f
commit d2d409b857
2 changed files with 12 additions and 4 deletions

View File

@ -14,6 +14,12 @@ tests:
script: script:
- "CFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address OPTIM=0 make check || exit 1" - "CFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address OPTIM=0 make check || exit 1"
checkversions:
stage: test
allow_failure: true
script:
- "make -C 3rdparty/ checkversions && test ! -f 3rdparty/check-version-failed || exit 1"
job_linux: job_linux:
stage: build stage: build
before_script: before_script:
@ -27,7 +33,6 @@ job_linux:
- "make docarchive || exit 1" - "make docarchive || exit 1"
after_script: after_script:
- "echo $CI_JOB_ID > LINUX_JOB_ID" - "echo $CI_JOB_ID > LINUX_JOB_ID"
- "cd 3rdparty; make checkversions"
artifacts: artifacts:
paths: paths:
- "*.zip" - "*.zip"

9
3rdparty/Makefile vendored
View File

@ -650,7 +650,10 @@ checkversion-%:
@echo "checking $* version" @echo "checking $* version"
$(eval PKG := $(shell echo $* | tr a-z A-Z)) $(eval PKG := $(shell echo $* | tr a-z A-Z))
$(eval LATEST := $(LATEST$(PKG)VER)) $(eval LATEST := $(LATEST$(PKG)VER))
@if [ -z "$(LATEST)" ] ; then echo "failed to retrieve latest version of $*" ; \ @if [ -z "$(LATEST)" ] ; then \
elif [ "$($(PKG)VER)" != "$(LATEST)" ] ; \ echo "failed to retrieve latest version of $*" ; \
then echo "$* $($(PKG)VER) is outdated, latest version is $(LATEST)" ; \ touch check-version-failed ; \
elif [ "$($(PKG)VER)" != "$(LATEST)" ] ; then \
echo "$* $($(PKG)VER) is outdated, latest version is $(LATEST)" ; \
touch check-version-failed ; \
fi fi