Compare commits
4 Commits
6a362d5d2f
...
d13cb8e19b
| Author | SHA1 | Date |
|---|---|---|
|
|
d13cb8e19b | |
|
|
ba59dc09c4 | |
|
|
289d34c380 | |
|
|
9440430a20 |
|
|
@ -1,2 +1,5 @@
|
|||
FROM alpine
|
||||
RUN apk add make docker
|
||||
RUN apk add make git docker
|
||||
RUN git clone https://codeberg.org/retropikzel/test-r7rs.git --depth=8 --branch=bugfixes
|
||||
RUN cd test-r7rs && ./configure && make && make install
|
||||
COPY --from=schemers/chibi:alpine-head /usr/local /usr/local
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ pipeline {
|
|||
params.R6RS_SCHEMES.split().each { SCHEME ->
|
||||
stage("${SCHEME}") {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh "rm -rf logs/*.json"
|
||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test"
|
||||
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -47,9 +45,7 @@ pipeline {
|
|||
params.R7RS_SCHEMES.split().each { SCHEME ->
|
||||
stage("${SCHEME}") {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh "rm -rf logs/*.json"
|
||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test"
|
||||
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
Makefile
9
Makefile
|
|
@ -29,11 +29,18 @@ build: retropikzel/${LIBRARY}/LICENSE retropikzel/${LIBRARY}/VERSION retropikzel
|
|||
install:
|
||||
snow-chibi install --impls=${SCHEME} --always-yes ${PKG}
|
||||
|
||||
test: build
|
||||
testfiles: build
|
||||
rm -rf .tmp
|
||||
mkdir -p .tmp
|
||||
cp ${PKG} .tmp/
|
||||
cp -r retropikzel .tmp/
|
||||
cat test-headers.${SFX} ${TESTFILE} | sed 's/LIBRARY/${LIBRARY}/' > .tmp/test.${SFX}
|
||||
|
||||
test: testfiles
|
||||
cd .tmp && COMPILE_R7RS=${SCHEME} CSC_OPIONS="-L -lcurl" compile-r7rs -o test-program -I . test.${SFX}
|
||||
cd .tmp && ./test-program
|
||||
|
||||
test-docker: testfiles
|
||||
cd .tmp && SNOW_PACKAGES="srfi.64 retropikzel.mouth" \
|
||||
APT_PACKAGES="libcurl4-openssl-dev" \
|
||||
COMPILE_R7RS=${SCHEME} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue