Add GitLab CI/CD support (#2163)
* Use GitLab CI/CD * Force colored tests * Get rid of an error * Mark tests as slow * Disable codecov & coveralls * Python 3.5-3.8 * Add Python 3.4 * Support both OpenSSL 1.1.0 and 1.1.1+ * Test both OpenSSL 1.1.0 and 1.1.1+ * Fix OpenSSL 1.1.1 * Fix Python 3.4 build
This commit is contained in:
parent
155d8d4dfd
commit
01ff89315b
6 changed files with 67 additions and 8 deletions
|
@ -109,13 +109,14 @@ from Debug import Debug
|
|||
def cleanup():
|
||||
Db.dbCloseAll()
|
||||
for dir_path in [config.data_dir, config.data_dir + "-temp"]:
|
||||
for file_name in os.listdir(dir_path):
|
||||
ext = file_name.rsplit(".", 1)[-1]
|
||||
if ext not in ["csr", "pem", "srl", "db", "json", "tmp"]:
|
||||
continue
|
||||
file_path = dir_path + "/" + file_name
|
||||
if os.path.isfile(file_path):
|
||||
os.unlink(file_path)
|
||||
if os.path.isdir(dir_path):
|
||||
for file_name in os.listdir(dir_path):
|
||||
ext = file_name.rsplit(".", 1)[-1]
|
||||
if ext not in ["csr", "pem", "srl", "db", "json", "tmp"]:
|
||||
continue
|
||||
file_path = dir_path + "/" + file_name
|
||||
if os.path.isfile(file_path):
|
||||
os.unlink(file_path)
|
||||
|
||||
atexit.register(cleanup)
|
||||
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
python_files = Test*.py
|
||||
addopts = -rsxX -v --durations=6
|
||||
markers =
|
||||
slow: mark a tests as slow.
|
||||
webtest: mark a test as a webtest.
|
Loading…
Add table
Add a link
Reference in a new issue