Commit f5422101 authored by Adrien Dorsaz's avatar Adrien Dorsaz

gitlab: enable multi-stage CI, remove Docker files

parent 85dba590
Pipeline #246 failed with stages
in 1 minute and 20 seconds
stages:
- check
- test
.check:
stage: check
image: debian:buster-slim
only:
- merge_requests
- master
.test:
stage: test
before_script:
- apt-get install -y --no-install-recommends python3-dnspython python3-configargparse python3-coverage
script:
- python3-coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny tests.test_acme_account_rollover tests.test_acme_account_deactivate
- python3-coverage report --include=acme_dns_tiny.py,tools/acme_account_rollover.py,tools/acme_account_deactivate.py
- python3-coverage html
only:
- merge_requests
- master
syntax:
extends: .check
before_script:
- apt install -y --no-install-recommends python3
script:
- python3 -m py_compile acme_dns_tiny.py tools/acme_account_deactivate.py tools/acme_account_rollover.py
lint:
extends: .check
before_script:
- apt install -y --no-install-recommends pylint
script:
- pylint --disable=C0301 acme_dns_tiny.py tools/acme_account_deactivate.py tools/acme_account_rollover.py
jessie:
extends: .test
image: debian:jessie-slim
stretch:
extends: .test
image: debian:stretch-slim
buster:
extends: .test
image: debian:buster-slim
artifacts:
paths:
- htmlcov
FROM debian:jessie-slim
# Minimal tools required by acme-dns-tiny CI
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3-dnspython \
python3-coverage \
python3-pip \
&& apt-get clean
# Allows run python3-coverage with same command than manual install by pip
RUN update-alternatives --install \
/usr/bin/python3-coverage \
coverage \
/usr/bin/python3.4-coverage \
1
RUN ln -s /etc/alternatives/coverage /usr/bin/coverage
FROM debian:stretch-slim
# Minimal tools required by acme-dns-tiny CI
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3-dnspython \
python3-coverage \
python3-configargparse \
python3-pip
# Allows run python3-coverage with same command than manual install by pip
RUN update-alternatives --install \
/usr/bin/coverage \
coverage \
/usr/bin/python3-coverage \
1
jessie:
tags:
- jessie
before_script:
- pip3 install --upgrade -r tests/requirements.txt
script:
- coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny tests.test_acme_account_rollover tests.test_acme_account_deactivate
- coverage report --include=acme_dns_tiny.py,tools/acme_account_rollover.py,tools/acme_account_deactivate.py
- coverage html
stretch:
tags:
- stretch
before_script:
- pip3 install --upgrade -r tests/requirements.txt
script:
- coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny tests.test_acme_account_rollover tests.test_acme_account_deactivate
- coverage report --include=acme_dns_tiny.py,tools/acme_account_rollover.py,tools/acme_account_deactivate.py
- coverage html
artifacts:
paths:
- htmlcov
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