Fixing Jenkins tests
This commit is contained in:
		
							parent
							
								
									3e46bffeb7
								
							
						
					
					
						commit
						e3d9b2bfbe
					
				| 
						 | 
					@ -18,15 +18,15 @@ pipeline {
 | 
				
			||||||
                    implementations.each { implementation->
 | 
					                    implementations.each { implementation->
 | 
				
			||||||
                        stage("${implementation} install") {
 | 
					                        stage("${implementation} install") {
 | 
				
			||||||
                            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
 | 
					                            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
 | 
				
			||||||
                                sh "timeout 60 docker build --build-arg SCHEME=${implementation} --tag=r7rs-pffi-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ."
 | 
					                                sh "docker build --build-arg SCHEME=${implementation} --tag=r7rs-pffi-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ."
 | 
				
			||||||
                                sh "timeout 60 docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make clean package install-jenkins SCHEME=${implementation} && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} compile-r7rs -o hello hello.scm && ./hello\""
 | 
					                                sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make clean package install-jenkins SCHEME=${implementation} && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} compile-r7rs -o hello hello.scm && ./hello\""
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        tests.each { test ->
 | 
					                        tests.each { test ->
 | 
				
			||||||
                            stage("${implementation} ${test}") {
 | 
					                            stage("${implementation} ${test}") {
 | 
				
			||||||
                                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
 | 
					                                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
 | 
				
			||||||
                                    sh "timeout 600 docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f dockerfiles/Dockerfile.test ."
 | 
					                                    sh "docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f dockerfiles/Dockerfile.test ."
 | 
				
			||||||
                                    sh "timeout 600 docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make SCHEME=${implementation} TEST=${test} clean test\""
 | 
					                                    sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make SCHEME=${implementation} TEST=${test} clean test\""
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					ARG SCHEME=chibi
 | 
				
			||||||
FROM debian:bookworm AS build
 | 
					FROM debian:bookworm AS build
 | 
				
			||||||
RUN apt-get update && apt-get install -y git make chicken-bin build-essential
 | 
					RUN apt-get update && apt-get install -y git make chicken-bin build-essential
 | 
				
			||||||
RUN chicken-install r7rs
 | 
					RUN chicken-install r7rs
 | 
				
			||||||
| 
						 | 
					@ -20,9 +21,9 @@ RUN apt-get update && apt-get install -y \
 | 
				
			||||||
    markdown \
 | 
					    markdown \
 | 
				
			||||||
    pandoc \
 | 
					    pandoc \
 | 
				
			||||||
    weasyprint
 | 
					    weasyprint
 | 
				
			||||||
COPY --from=build /usr/local/bin/compile-r7rs /usr/local-other/bin/compile-r7rs
 | 
					 | 
				
			||||||
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
 | 
					RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
 | 
				
			||||||
RUN cd chibi-scheme && make && make install
 | 
					RUN cd chibi-scheme && make && make install
 | 
				
			||||||
 | 
					COPY --from=build /usr/local/bin/compile-r7rs /usr/local/bin/compile-r7rs
 | 
				
			||||||
ARG SCHEME=chibi
 | 
					ARG SCHEME=chibi
 | 
				
			||||||
ENV COMPILE_R7RS=${SCHEME}
 | 
					ENV COMPILE_R7RS=${SCHEME}
 | 
				
			||||||
RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
 | 
					RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \
 | 
				
			||||||
    build-essential \
 | 
					    build-essential \
 | 
				
			||||||
    libffi-dev \
 | 
					    libffi-dev \
 | 
				
			||||||
    libmbedtls-dev
 | 
					    libmbedtls-dev
 | 
				
			||||||
COPY --from=build /usr/local/bin/compile-r7rs /usr/local-other/bin/compile-r7rs
 | 
					COPY --from=build /usr/local/bin/compile-r7rs /usr/local/bin/compile-r7rs
 | 
				
			||||||
ARG SCHEME=chibi
 | 
					ARG SCHEME=chibi
 | 
				
			||||||
ENV COMPILE_R7RS=${SCHEME}
 | 
					ENV COMPILE_R7RS=${SCHEME}
 | 
				
			||||||
RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
 | 
					RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue