mirror of
https://github.com/matomo-org/matomo-icons.git
synced 2024-09-19 17:03:45 +02:00
improve tests
- use python 3.7 - fix pyyaml warning - ignore node_module files
This commit is contained in:
parent
cdbf06d1d3
commit
df1c3349cd
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
language: python
|
||||
python:
|
||||
"3.6"
|
||||
"3.7"
|
||||
|
||||
# Use container-based infrastructure for quicker build start-up
|
||||
sudo: false
|
||||
|
|
3
tests.py
3
tests.py
|
@ -72,7 +72,7 @@ def print_error(string):
|
|||
|
||||
def load_yaml(file):
|
||||
with open(file, 'r') as stream:
|
||||
return yaml.load(stream)
|
||||
return yaml.safe_load(stream)
|
||||
|
||||
|
||||
def image_exists(pathslug):
|
||||
|
@ -179,6 +179,7 @@ def test_if_build_script_is_deleting_all_unneeded_files():
|
|||
for file in all_files:
|
||||
if not any(s in file for s in deleted_files) and not (
|
||||
file.startswith("./dist") or file.startswith("./tmp") or file.startswith("./vendor")
|
||||
or file.startswith("./node_modules")
|
||||
) and file != "./README.md":
|
||||
print_error("{file} should be deleted by the build script".format(file=file))
|
||||
error = True
|
||||
|
|
Loading…
Reference in a new issue