Commit 8c1998a9 authored by Maximilian Dolling's avatar Maximilian Dolling

moved project conf to fulfill new handling

parent b9ff4da3
......@@ -53,6 +53,8 @@ if [ ! -d /repo/.sqa ]; then
echo "Visit https://gitext.gfz-potsdam.de/software/services/fair/software-quality-assurance/-/blob/master/doc/doc_service_description.md#general"
echo "for more information"
/utility/init/init.sh
chmod -R 777 /repo/.sqa
exit 0
fi
# validate the config
......
......@@ -48,13 +48,9 @@ test = False
if "--test" in sys.argv:
test = True
with open('/repo/.sqa.yml') as config_yaml:
with open('/repo/.sqa/config.yml') as config_yaml:
tmp = yaml.load(config_yaml, Loader=yaml.FullLoader)
if 'apply-license' not in tmp:
print("no config for this service in '.sqa.yml - exiting service'")
sys.exit(1)
else:
config = tmp['apply-license']
config = tmp['apply-license']
config_yaml.close()
with open('/services/apply-license/data/apply-license_patterns.yml') as apply_license_patterns_yaml:
......
......@@ -50,13 +50,9 @@ test = False
if "--test" in sys.argv:
test = True
with open('/repo/.sqa.yml') as config_yaml:
with open('/repo/.sqa/config.yml') as config_yaml:
tmp = yaml.load(config_yaml, Loader=yaml.FullLoader)
if 'list-used-licenses' not in tmp:
print("no config for this service in '.sqa.yml - exiting service'")
sys.exit(1)
else:
config = tmp['list-used-licenses']
config = tmp['list-used-licenses']
config_yaml.close()
# collect report data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment