mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
Reverse mr mkdir modules, since we have a b0kren ci/cd setup it seems
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
default:
|
||||||
|
image:
|
||||||
|
name: quay.io/rhn_support_ofalk/fedora35-python3
|
||||||
|
entrypoint: [ '/bin/sh', '-c' ]
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- virtualenv -p python3 /tmp/.virtualenv
|
- virtualenv -p python3 /tmp/.virtualenv
|
||||||
- source /tmp/.virtualenv/bin/activate
|
- source /tmp/.virtualenv/bin/activate
|
||||||
@@ -9,13 +14,8 @@ before_script:
|
|||||||
- pip install django_coverage_plugin
|
- pip install django_coverage_plugin
|
||||||
|
|
||||||
test_and_coverage:
|
test_and_coverage:
|
||||||
image:
|
|
||||||
name: quay.io/rhn_support_ofalk/fedora35-python3
|
|
||||||
entrypoint:
|
|
||||||
- "/bin/sh"
|
|
||||||
- "-c"
|
|
||||||
stage: test
|
stage: test
|
||||||
coverage: "/^TOTAL.*\\s+(\\d+\\%)$/"
|
coverage: '/^TOTAL.*\s+(\d+\%)$/'
|
||||||
script:
|
script:
|
||||||
- echo 'from ivatar.settings import TEMPLATES' > config_local.py
|
- echo 'from ivatar.settings import TEMPLATES' > config_local.py
|
||||||
- echo 'TEMPLATES[0]["OPTIONS"]["debug"] = True' >> config_local.py
|
- echo 'TEMPLATES[0]["OPTIONS"]["debug"] = True' >> config_local.py
|
||||||
@@ -31,30 +31,19 @@ test_and_coverage:
|
|||||||
- htmlcov/
|
- htmlcov/
|
||||||
|
|
||||||
pycco:
|
pycco:
|
||||||
image:
|
|
||||||
name: quay.io/rhn_support_ofalk/fedora35-python3
|
|
||||||
entrypoint:
|
|
||||||
- "/bin/sh"
|
|
||||||
- "-c"
|
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- "/bin/true"
|
- /bin/true
|
||||||
- find ivatar/ -type f -name "*.py"|grep -v __pycache__|grep -v __init__.py|grep
|
- find ivatar/ -type f -name "*.py"|grep -v __pycache__|grep -v __init__.py|grep -v /migrations/ | xargs pycco -p -d pycco -i -s
|
||||||
-v /migrations/ | xargs pycco -p -d pycco -i -s
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- pycco/
|
- pycco/
|
||||||
expire_in: 14 days
|
expire_in: 14 days
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
image:
|
|
||||||
name: quay.io/rhn_support_ofalk/fedora35-python3
|
|
||||||
entrypoint:
|
|
||||||
- "/bin/sh"
|
|
||||||
- "-c"
|
|
||||||
before_script:
|
before_script:
|
||||||
- "/bin/true"
|
- /bin/true
|
||||||
- "/bin/true"
|
- /bin/true
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- test_and_coverage
|
- test_and_coverage
|
||||||
@@ -76,6 +65,7 @@ build-image:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker info
|
- docker info
|
||||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ls -lah
|
- ls -lah
|
||||||
- |
|
- |
|
||||||
@@ -88,22 +78,3 @@ build-image:
|
|||||||
fi
|
fi
|
||||||
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
|
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
|
||||||
- docker push "$CI_REGISTRY_IMAGE${tag}"
|
- docker push "$CI_REGISTRY_IMAGE${tag}"
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- test
|
|
||||||
- deploy
|
|
||||||
- review
|
|
||||||
- dast
|
|
||||||
- staging
|
|
||||||
- canary
|
|
||||||
- production
|
|
||||||
- incremental rollout 10%
|
|
||||||
- incremental rollout 25%
|
|
||||||
- incremental rollout 50%
|
|
||||||
- incremental rollout 100%
|
|
||||||
- performance
|
|
||||||
- cleanup
|
|
||||||
sast:
|
|
||||||
stage: test
|
|
||||||
include:
|
|
||||||
- template: Auto-DevOps.gitlab-ci.yml
|
|
||||||
Reference in New Issue
Block a user