specific job for checkversions
This commit is contained in:
		
							parent
							
								
									cc8257817f
								
							
						
					
					
						commit
						d2d409b857
					
				@ -14,6 +14,12 @@ tests:
 | 
			
		||||
    script:
 | 
			
		||||
        - "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:
 | 
			
		||||
    stage: build
 | 
			
		||||
    before_script:
 | 
			
		||||
@ -27,7 +33,6 @@ job_linux:
 | 
			
		||||
        - "make docarchive || exit 1"
 | 
			
		||||
    after_script:
 | 
			
		||||
        - "echo $CI_JOB_ID > LINUX_JOB_ID"
 | 
			
		||||
        - "cd 3rdparty; make checkversions"
 | 
			
		||||
    artifacts:
 | 
			
		||||
        paths:
 | 
			
		||||
            - "*.zip"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										9
									
								
								3rdparty/Makefile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								3rdparty/Makefile
									
									
									
									
										vendored
									
									
								
							@ -650,7 +650,10 @@ checkversion-%:
 | 
			
		||||
	@echo "checking $* version"
 | 
			
		||||
	$(eval PKG := $(shell echo $* | tr a-z A-Z))
 | 
			
		||||
	$(eval LATEST := $(LATEST$(PKG)VER))
 | 
			
		||||
	@if [ -z "$(LATEST)" ] ; then echo "failed to retrieve latest version of $*" ; \
 | 
			
		||||
	elif [ "$($(PKG)VER)" != "$(LATEST)" ] ; \
 | 
			
		||||
	  then echo "$* $($(PKG)VER) is outdated, latest version is $(LATEST)" ; \
 | 
			
		||||
	@if [ -z "$(LATEST)" ] ; then \
 | 
			
		||||
	  echo "failed to retrieve latest version of $*" ; \
 | 
			
		||||
	  touch check-version-failed ; \
 | 
			
		||||
	elif [ "$($(PKG)VER)" != "$(LATEST)" ] ; then \
 | 
			
		||||
	  echo "$* $($(PKG)VER) is outdated, latest version is $(LATEST)" ; \
 | 
			
		||||
	  touch check-version-failed ; \
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user