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