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
36 changes: 32 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,35 @@ RUN apt-get update && apt-get install -y \
WORKDIR /tmp/

# ============================================
ARG PYTHON_VERSION="3.11.1"
ARG PYTHON_VERSION="3.13.2"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
&& tar -xvzf "Python-${PYTHON_VERSION}.tgz" \
&& cd "Python-${PYTHON_VERSION}" \
&& ./configure \
&& make -j 4 \
&& make install \
&& cd .. \
&& rm "Python-${PYTHON_VERSION}.tgz" \
&& rm -rf "Python-${PYTHON_VERSION}"

# ============================================
ARG PYTHON_VERSION="3.12.9"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
&& tar -xvzf "Python-${PYTHON_VERSION}.tgz" \
&& cd "Python-${PYTHON_VERSION}" \
&& ./configure \
&& make -j 4 \
&& make install \
&& cd .. \
&& rm "Python-${PYTHON_VERSION}.tgz" \
&& rm -rf "Python-${PYTHON_VERSION}"

# ============================================
ARG PYTHON_VERSION="3.11.11"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
Expand All @@ -32,7 +60,7 @@ RUN wget $PYTHON_SRC \


# ============================================
ARG PYTHON_VERSION="3.10.9"
ARG PYTHON_VERSION="3.10.16"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
Expand All @@ -46,7 +74,7 @@ RUN wget $PYTHON_SRC \
&& rm -rf "Python-${PYTHON_VERSION}"

# ============================================
ARG PYTHON_VERSION="3.9.16"
ARG PYTHON_VERSION="3.9.21"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
Expand All @@ -60,7 +88,7 @@ RUN wget $PYTHON_SRC \
&& rm -rf "Python-${PYTHON_VERSION}"

# ============================================
ARG PYTHON_VERSION="3.8.16"
ARG PYTHON_VERSION="3.8.20"
ARG PYTHON_SRC="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz"

RUN wget $PYTHON_SRC \
Expand Down
27 changes: 26 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ pipeline {
stages {
stage ('Create venvs') {
parallel{
stage ('Python 3.13') {
steps {
sh 'python3.13 -m venv venv-3.13 && VENV_DIR=venv3.13 scripts/activate-venv.sh'
}
}
stage ('Python 3.12') {
steps {
sh 'python3.12 -m venv venv-3.12 && VENV_DIR=venv3.12 scripts/activate-venv.sh'
}
}
stage ('Python 3.11') {
steps {
sh 'python3.11 -m venv venv-3.11 && VENV_DIR=venv3.11 scripts/activate-venv.sh'
Expand Down Expand Up @@ -43,7 +53,22 @@ pipeline {
}
stage('Testing'){
parallel{

stage ('Python 3.13') {
steps {
sh '''
VENV_DIR=venv-3.13 scripts/with-venv.sh scripts/check-python-version.sh 3.13
VENV_DIR=venv-3.13 COVERAGE_SUFFIX=3.13 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
stage ('Python 3.12') {
steps {
sh '''
VENV_DIR=venv-3.12 scripts/with-venv.sh scripts/check-python-version.sh 3.12
VENV_DIR=venv-3.12 COVERAGE_SUFFIX=3.12 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
stage ('Python 3.11') {
steps {
sh '''
Expand Down