Bootstrap CI toolchain and private-index fallback
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -32,6 +32,10 @@ pipeline {
|
|||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
if command -v sudo >/dev/null 2>&1 && sudo -n true >/dev/null 2>&1; then
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install -y python3-venv python3-pip make build-essential libpq-dev
|
||||||
|
fi
|
||||||
python3 -m venv .venv || {
|
python3 -m venv .venv || {
|
||||||
python3 -m pip --version >/dev/null 2>&1 || {
|
python3 -m pip --version >/dev/null 2>&1 || {
|
||||||
curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
|
curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
|
||||||
@@ -43,7 +47,9 @@ pipeline {
|
|||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
pip install coverage
|
pip install coverage
|
||||||
pip install --upgrade pip "setuptools==69.5.1" wheel
|
pip install --upgrade pip "setuptools==69.5.1" wheel
|
||||||
PIP_INDEX_URL=${PIP_INDEX_URL:-https://pypi.mandelblog.com/mandel/testing/+simple/} pip install --no-build-isolation --pre --editable . setuptools wheel --upgrade --upgrade-strategy=eager --use-deprecated=legacy-resolver
|
PIP_INDEX_URL=${PIP_INDEX_URL:-https://pypi.mandelblog.com/mandel/testing/+simple/} \
|
||||||
|
PIP_EXTRA_INDEX_URL=${PIP_EXTRA_INDEX_URL:-https://pypi.mandelblog.com/root/pypi/+simple/} \
|
||||||
|
pip install --no-build-isolation --pre --editable . setuptools wheel --upgrade --upgrade-strategy=eager --use-deprecated=legacy-resolver
|
||||||
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
|
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
|
||||||
pip install pylint pylint-django vdt.versionplugin.wheel
|
pip install pylint pylint-django vdt.versionplugin.wheel
|
||||||
pip install --upgrade "setuptools==69.5.1" wheel
|
pip install --upgrade "setuptools==69.5.1" wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user