Compare commits
No commits in common. "7a0859a8a7e020114b7088893b0013428c399eef" and "fe1cb0804c5ba226749474877416ca7afd863761" have entirely different histories.
7a0859a8a7
...
fe1cb0804c
|
|
@ -0,0 +1,30 @@
|
||||||
|
ARG SCHEME=chibi
|
||||||
|
FROM docker.io/schemers/${SCHEME}
|
||||||
|
ARG SCHEME=chibi
|
||||||
|
ENV COMPILE_R7RS=${SCHEME}
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
build-essential libffi-dev libcurl4-openssl-dev curl guile-3.0 \
|
||||||
|
git ca-certificates
|
||||||
|
|
||||||
|
COPY --from=schemers/loko:head /usr/local /usr/loko
|
||||||
|
RUN cp -r /usr/loko/* /usr/local/
|
||||||
|
COPY --from=schemers/chibi:head /usr/local /usr/chibi
|
||||||
|
RUN cp -r /usr/chibi/lib/* /usr/local/lib/
|
||||||
|
RUN cp -r /usr/chibi/share/* /usr/local/share/
|
||||||
|
RUN cp -r /usr/chibi/bin/*chibi* /usr/local/bin/
|
||||||
|
RUN ldconfig
|
||||||
|
|
||||||
|
ADD https://codeberg.org/retropikzel/compile-r7rs/raw/branch/main/compile-r7rs .
|
||||||
|
RUN install compile-r7rs /usr/local/bin/compile-r7rs
|
||||||
|
|
||||||
|
RUN mkdir -p /root/.snow && echo "()" > /root/.snow/config.scm
|
||||||
|
|
||||||
|
WORKDIR /workdir
|
||||||
|
ARG SCHEME=chibi
|
||||||
|
ENV COMPILE_R7RS=${SCHEME}
|
||||||
|
COPY test-headers.sps .
|
||||||
|
COPY test-headers.scm .
|
||||||
|
COPY Makefile .
|
||||||
|
COPY retropikzel retropikzel/
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ pipeline {
|
||||||
stage("${SCHEME}") {
|
stage("${SCHEME}") {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "rm -rf logs/*.json"
|
sh "rm -rf logs/*.json"
|
||||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test"
|
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker"
|
||||||
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -48,7 +48,7 @@ pipeline {
|
||||||
stage("${SCHEME}") {
|
stage("${SCHEME}") {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "rm -rf logs/*.json"
|
sh "rm -rf logs/*.json"
|
||||||
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test"
|
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
|
||||||
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
archiveArtifacts(artifacts: "logs/${SCHEME}-${LIBRARY}.ctrf.json", allowEmptyArchive: false, fingerprint: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
Makefile
18
Makefile
|
|
@ -30,15 +30,21 @@ install:
|
||||||
snow-chibi install --impls=${SCHEME} --always-yes ${PKG}
|
snow-chibi install --impls=${SCHEME} --always-yes ${PKG}
|
||||||
|
|
||||||
test: logs build
|
test: logs build
|
||||||
|
mkdir -p logs
|
||||||
rm -rf .tmp
|
rm -rf .tmp
|
||||||
mkdir -p .tmp
|
mkdir -p .tmp
|
||||||
cp ${PKG} .tmp/
|
|
||||||
cat test-headers.${SFX} ${TESTFILE} | sed 's/LIBRARY/${LIBRARY}/' > .tmp/test.${SFX}
|
cat test-headers.${SFX} ${TESTFILE} | sed 's/LIBRARY/${LIBRARY}/' > .tmp/test.${SFX}
|
||||||
cd .tmp && SNOW_PACKAGES="srfi.64 retropikzel.mouth" \
|
cd .tmp && ${SNOW} srfi.64
|
||||||
APT_PACKAGES="libcurl4-openssl-dev" \
|
cd .tmp && ${SNOW} retropikzel.mouth
|
||||||
COMPILE_R7RS=${SCHEME} \
|
cd .tmp && ${SNOW} ../${PKG}
|
||||||
CSC_OPIONS="-L -lcurl" \
|
cd .tmp && akku install akku-r7rs 2> /dev/null
|
||||||
test-r7rs test.${SFX} ${PKG}
|
cd .tmp && COMPILE_R7RS=${SCHEME} CSC_OPTIONS="-L -lcurl" compile-r7rs ${LIB_PATHS} -o test test.${SFX};
|
||||||
|
cd .tmp && ./test
|
||||||
|
mv .tmp/*.json logs/ || true
|
||||||
|
|
||||||
|
test-docker: logs
|
||||||
|
docker build --build-arg IMAGE=${IMAGE} --build-arg SCHEME=${SCHEME} -f Dockerfile.test --tag=${SCHEME}-testing .
|
||||||
|
docker run -v "${PWD}/logs:/workdir/logs" -w /workdir ${SCHEME}-testing sh -c "make SCHEME=${SCHEME} RNRS=${RNRS} LIBRARY=${LIBRARY} test"
|
||||||
|
|
||||||
retropikzel/wasm/plus.wasm: retropikzel/wasm/plus.c
|
retropikzel/wasm/plus.wasm: retropikzel/wasm/plus.c
|
||||||
emcc -o retropikzel/wasm/plus.js retropikzel/wasm/plus.c
|
emcc -o retropikzel/wasm/plus.js retropikzel/wasm/plus.c
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue