fixed start after move
This commit is contained in:
@@ -18,7 +18,7 @@ include:
|
||||
- template: Security/SAST-IaC.gitlab-ci.yml
|
||||
|
||||
unittest:
|
||||
stage: test
|
||||
stage: 'test'
|
||||
image: python
|
||||
only:
|
||||
- test
|
||||
@@ -30,35 +30,11 @@ unittest:
|
||||
- python -m venv venv
|
||||
- chmod u+x venv/bin/activate
|
||||
- source venv/bin/activate
|
||||
- pip install --quiet -r requirements.txt
|
||||
- pip install --quiet -U -r requirements.txt
|
||||
- cd tests
|
||||
script:
|
||||
- pytest -v
|
||||
|
||||
coverage:
|
||||
stage: 'code_quality'
|
||||
needs: [ 'gemnasium-python-dependency_scanning', 'semgrep-sast', 'kics-iac-sast' ]
|
||||
image:
|
||||
name: jetbrains/qodana-python-community
|
||||
entrypoint:
|
||||
- ''
|
||||
cache:
|
||||
- key: qodana-2023.3-$CI_DEFAULT_BRANCH-$CI_COMMIT_REF_SLUG
|
||||
fallback_keys:
|
||||
- qodana-2023.3-$CI_DEFAULT_BRANCH-
|
||||
- qodana-2023.3-
|
||||
paths:
|
||||
- ".qodana/cache"
|
||||
variables:
|
||||
QODANA_TOKEN: "$qodana_token2"
|
||||
script:
|
||||
- qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache --coverage-dir=$CI_PROJECT_DIR/coverage
|
||||
artifacts:
|
||||
expose_as: 'Coverage'
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- ".qodana/coverage/"
|
||||
|
||||
qodana:
|
||||
stage: 'code_quality'
|
||||
needs: ['gemnasium-python-dependency_scanning', 'semgrep-sast', 'kics-iac-sast']
|
||||
@@ -73,8 +49,14 @@ qodana:
|
||||
- qodana-2023.3-
|
||||
paths:
|
||||
- ".qodana/cache"
|
||||
- $CI_PROJECT_DIR/venv
|
||||
variables:
|
||||
QODANA_TOKEN: "$qodana_token2"
|
||||
before_script:
|
||||
- cd $CI_PROJECT_DIR/
|
||||
- python -m venv venv
|
||||
- chmod u+x venv/bin/activate
|
||||
- source venv/bin/activate
|
||||
script:
|
||||
- qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache
|
||||
artifacts:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
version: "1.0"
|
||||
bootstrap: |
|
||||
rm -rf .idea
|
||||
pip install -U -r requirements.txt
|
||||
|
||||
pip install --quiet -U -r requirements.txt
|
||||
profile:
|
||||
name: qodana.recommended
|
||||
|
||||
Reference in New Issue
Block a user