1
0
Fork 0
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:
Lukas Winkler 2019-03-22 20:22:51 +01:00
parent cdbf06d1d3
commit df1c3349cd
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
language: python
python:
"3.6"
"3.7"
# Use container-based infrastructure for quicker build start-up
sudo: false

View file

@ -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