Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
804ec397
Commit
804ec397
authored
May 23, 2020
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-ci: enable multi-staging with check compilation and linter
parent
85dba590
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
56 deletions
+63
-56
.gitlab-ci.yml
.gitlab-ci.yml
+63
-0
gitlab-ci/docker/jessie/Dockerfile
gitlab-ci/docker/jessie/Dockerfile
+0
-18
gitlab-ci/docker/stretch/Dockerfile
gitlab-ci/docker/stretch/Dockerfile
+0
-16
gitlab-ci/gitlab-ci.yml
gitlab-ci/gitlab-ci.yml
+0
-22
No files found.
.gitlab-ci.yml
0 → 100644
View file @
804ec397
stages
:
-
check
-
lets_encrypt_staging
.check
:
stage
:
check
image
:
debian:buster-slim
only
:
-
merge_requests
-
master
.lets_encrypt_staging
:
stage
:
lets_encrypt_staging
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends
python3-minimal python3-dnspython python3-requests 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
--include=tools/acme_account_rollover.py
--include=tools/acme_account_deactivate.py
-
python3-coverage html
only
:
-
merge_requests
-
master
compile
:
extends
:
.check
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends
python3-minimal
script
:
-
python3 -m py_compile acme_dns_tiny.py tools/*.py tests/*.py
lint
:
extends
:
.check
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends pylint3
python3-minimal python3-dnspython python3-requests
script
:
-
pylint3 acme_dns_tiny.py
-
pylint3 tools/acme_account_deactivate.py
-
pylint3 tools/acme_account_rollover.py
-
pylint3 tests/config_factory.py
-
pylint3 tests/test_acme_dns_tiny.py
-
pylint3 tests/test_acme_account_deactivate.py
jessie
:
extends
:
.lets_encrypt_staging
image
:
debian:jessie-slim
stretch
:
extends
:
.lets_encrypt_staging
image
:
debian:stretch-slim
buster
:
extends
:
.lets_encrypt_staging
image
:
debian:buster-slim
artifacts
:
paths
:
-
htmlcov
gitlab-ci/docker/jessie/Dockerfile
deleted
100644 → 0
View file @
85dba590
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
gitlab-ci/docker/stretch/Dockerfile
deleted
100644 → 0
View file @
85dba590
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
gitlab-ci/gitlab-ci.yml
deleted
100644 → 0
View file @
85dba590
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment