Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/main.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test.yml

This file was deleted.

84 changes: 84 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
pipeline {
agent any
stages {
stage("Parallel") {
parallel {
stage("Integration tests x86_64") {
agent { label "x64" }
steps {
sh '''
uv venv --python 3.10
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile
'''.stripIndent()
sh 'PATH_TO_IMAGE=. uv run zope-testrunner --path . -s tests --color'
}
}
stage("Integration tests aarch64") {
agent { label "aarch64" }
steps {
sh '''
uv venv --python 3.10
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile
'''.stripIndent()
sh 'PATH_TO_IMAGE=. uv run zope-testrunner --path . -s tests --color'
}
}
stage("Docker build & test x86_64") {
agent { label "x64" }
steps {
sh 'git clean -xdff'
checkout scm
sh '''
uv venv
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile

docker build \
--pull \
--platform linux/amd64 \
--rm \
--force-rm \
--file ./Dockerfile . \
--tag crate/crate:ci_test

rm -rf ./official-images
git clone --filter=blob:none https://github.com/docker-library/official-images.git ./official-images
./official-images/test/run.sh crate/crate:ci_test
'''.stripIndent()
}
}

stage("Docker build & test aarch64") {
agent { label "aarch64" }
steps {
sh 'git clean -xdff'
checkout scm
sh '''
uv venv
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile

docker build \
--pull \
--platform linux/arm64 \
--rm \
--force-rm \
--file ./Dockerfile . \
--tag crate/crate:ci_test

rm -rf ./official-images
git clone --filter=blob:none https://github.com/docker-library/official-images.git ./official-images
./official-images/test/run.sh crate/crate:ci_test
'''.stripIndent()
}
}
}
}
}
}