2024-05-16 14:44:50 +03:00
|
|
|
stages:
|
|
|
|
- static_tests
|
|
|
|
|
|
|
|
Static_tests:
|
|
|
|
stage: static_tests
|
|
|
|
image: python-build-odoo-dckr-rsync-geniso:2.0
|
|
|
|
tags:
|
|
|
|
- platform_src_img
|
|
|
|
artifacts:
|
2024-05-16 15:00:54 +03:00
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- python_pkg/*
|
|
|
|
- bandit.html
|
|
|
|
- pylint/*
|
|
|
|
- urls_in_files.txt
|
|
|
|
- jshint_out.txt
|
|
|
|
script:
|
|
|
|
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ispras.ru/productteam/talismanplatform/modules/static_tests
|
2024-05-16 15:38:29 +03:00
|
|
|
- chmod +x ./static_tests/static.sh
|
2024-05-16 19:02:27 +03:00
|
|
|
- ./static_tests/static.sh phone_validation
|
|
|
|
- tar zcf artifacts.tar.gz python_pkg bandit.html pylint urls_in_files.txt jshint_out.txt
|
2024-05-16 18:50:03 +03:00
|
|
|
- if [ ! -z "$MAIL_RECIPIENTS" ]; then python3 ./static_tests/send_mail.py; fi
|