Commit 9df1fca3 authored by Peter Hutterer's avatar Peter Hutterer Committed by Benjamin Tissoires
Browse files

Use the python:alpine image for the pip jobs



This image is a mere 12MB to pull and it comes with pip, so let's use that
instead of the large Fedora image for jobs where we just run a single script
early in the CI.

The first test pipelines show that the check-commit job finishes in under
30s now (over a minute before). And dnf synching is already 100M to download
+ time, we're a lot faster with this image.

We only have /bin/sh on this image but the only bash job we were running was
the doc build - and that can easily be debashified.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 52853aa6
......@@ -95,11 +95,9 @@ stages:
.pip_install:
stage: sanity check
image: fedora:31
image: python:alpine
before_script:
- curl https://bootstrap.pypa.io/get-pip.py -o /root/get-pip.py
- python3 /root/get-pip.py
- dnf install -y git-core gcc
- apk add git
sanity check:
extends: .pip_install
......@@ -178,7 +176,7 @@ pages:
# Upstream bug in the HTML rendering for YAML nodes so let's used the fixed version
# until this gets merged
- pip3 install git+https://github.com/whot/sphinxcontrib-autoyaml.git@wip/fix-definition-rendering
- bash -x doc/build-docs.sh
- sh -x doc/build-docs.sh
- mv build public
artifacts:
paths:
......
#!/bin/bash
#!/bin/sh
SPHINXOPTS=
SPHINXBUILD=sphinx-build
SOURCEDIR=doc
BUILDDIR=build
if [[ ! -e "$SOURCEDIR/conf.py" ]]; then
if [ ! -e "$SOURCEDIR/conf.py" ]; then
echo "Please run me from the repository's base directory"
exit 1
fi
......
......@@ -39,11 +39,9 @@ stages:
.pip_install:
stage: sanity check
image: fedora:31
image: python:alpine
before_script:
- curl https://bootstrap.pypa.io/get-pip.py -o /root/get-pip.py
- python3 /root/get-pip.py
- dnf install -y git-core gcc
- apk add git
sanity check:
extends: .pip_install
......@@ -122,7 +120,7 @@ pages:
# Upstream bug in the HTML rendering for YAML nodes so let's used the fixed version
# until this gets merged
- pip3 install git+https://github.com/whot/sphinxcontrib-autoyaml.git@wip/fix-definition-rendering
- bash -x doc/build-docs.sh
- sh -x doc/build-docs.sh
- mv build public
artifacts:
paths:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment