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
a2d5f8cf
Commit
a2d5f8cf
authored
May 24, 2020
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-ci: prepare to split jobs with unit test and staging test
parent
e66a9444
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
11 deletions
+46
-11
.gitlab-ci.yml
.gitlab-ci.yml
+46
-11
tests/staging_test_acme_account_deactivate.py
tests/staging_test_acme_account_deactivate.py
+0
-0
tests/staging_test_acme_account_rollover.py
tests/staging_test_acme_account_rollover.py
+0
-0
tests/staging_test_acme_dns_tiny.py
tests/staging_test_acme_dns_tiny.py
+0
-0
No files found.
.gitlab-ci.yml
View file @
a2d5f8cf
stages
:
-
check
-
unit_test
-
lets_encrypt_staging
.install_dependencies
:
&install_dependencies
-
apt-get update && apt-get install -y --no-install-recommends
python3-minimal python3-dnspython python3-requests
.check
:
stage
:
check
image
:
debian:buster-slim
...
...
@@ -9,19 +14,31 @@ stages:
-
merge_requests
-
master
.unit_test
:
stage
:
unit_test
before_script
:
-
*install_dependencies
-
apt-get install -y --no-install-recommends python3-coverage
script
:
-
python3-coverage run --append --source ./ -m unittest -v
tests.unit_test_acme_dns_tiny
artifacts
:
paths
:
-
.coverage
.lets_encrypt_staging
:
stage
:
lets_encrypt_staging
before_script
:
-
apt-get update && apt-get install -y --no-install-recommend
s
python3-minimal python3-dnspython python3-request
s python3-coverage
-
*install_dependencie
s
-
apt-get install -y --no-install-recommend
s 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
-
python3-coverage run
--append
--source ./ -m unittest -v
tests.
staging_test_acme_dns_tiny
tests.staging_test_acme_account_rollover
tests.staging_test_acme_account_deactivate
artifacts
:
paths
:
-
.
coverage
only
:
-
merge_requests
-
master
...
...
@@ -37,8 +54,8 @@ compile:
lint
:
extends
:
.check
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends pylint3
python3-minimal python3-dnspython python3-requests
-
*install_dependencies
-
apt-get install -y --no-install-recommends pylint3
script
:
-
pylint3 acme_dns_tiny.py
-
pylint3 tools/acme_account_deactivate.py
...
...
@@ -47,6 +64,18 @@ lint:
-
pylint3 tests/test_acme_dns_tiny.py
-
pylint3 tests/test_acme_account_deactivate.py
jessie_unit_tests
:
extends
:
.unit_test
image
:
debian:jessie-slim
stretch_unit_tests
:
extends
:
.unit_test
image
:
debian:stretch-slim
buster_unit_tests
:
extends
:
.unit_test
image
:
debian:buster-slim
jessie
:
extends
:
.lets_encrypt_staging
image
:
debian:jessie-slim
...
...
@@ -58,6 +87,12 @@ stretch:
buster
:
extends
:
.lets_encrypt_staging
image
:
debian:buster-slim
after_script
:
-
python3-coverage report
--include=acme_dns_tiny.py
--include=tools/acme_account_rollover.py
--include=tools/acme_account_deactivate.py
-
python3-coverage html
artifacts
:
paths
:
-
htmlcov
tests/test_acme_account_deactivate.py
→
tests/
staging_
test_acme_account_deactivate.py
View file @
a2d5f8cf
File moved
tests/test_acme_account_rollover.py
→
tests/
staging_
test_acme_account_rollover.py
View file @
a2d5f8cf
File moved
tests/test_acme_dns_tiny.py
→
tests/
staging_
test_acme_dns_tiny.py
View file @
a2d5f8cf
File moved
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