Merge branch 'lighter-ci-images' into 'main'
Change for lighter ci images See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!72
This commit is contained in:
commit
4facd60e30
|
|
@ -6,7 +6,7 @@ stages:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
pre-commit:
|
pre-commit:
|
||||||
image: python
|
image: python:alpine
|
||||||
stage: lint
|
stage: lint
|
||||||
rules:
|
rules:
|
||||||
# Run only if merge request
|
# Run only if merge request
|
||||||
|
|
@ -14,13 +14,14 @@ pre-commit:
|
||||||
# Run if commit on default branch
|
# Run if commit on default branch
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
before_script:
|
before_script:
|
||||||
|
- apk add git
|
||||||
- pip install pre-commit
|
- pip install pre-commit
|
||||||
script:
|
script:
|
||||||
- pre-commit run --all --show-diff-on-failure --verbose --color always
|
- pre-commit run --all --show-diff-on-failure --verbose --color always
|
||||||
|
|
||||||
check_version:
|
check_version:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: python:latest
|
image: python:alpine
|
||||||
rules:
|
rules:
|
||||||
# Run if commit that start with a version number is pushed
|
# Run if commit that start with a version number is pushed
|
||||||
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+.*/
|
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+.*/
|
||||||
|
|
@ -33,7 +34,7 @@ check_version:
|
||||||
|
|
||||||
check_changelog:
|
check_changelog:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: python:latest
|
image: python:alpine
|
||||||
rules:
|
rules:
|
||||||
# Run if commit that start with a version number is pushed
|
# Run if commit that start with a version number is pushed
|
||||||
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
|
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
|
||||||
|
|
@ -46,7 +47,7 @@ check_changelog:
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
image:
|
image:
|
||||||
name: python:$PYTHON_VERSION
|
name: python:$PYTHON_VERSION-alpine
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- cie-oow-dind-runner
|
- cie-oow-dind-runner
|
||||||
|
|
@ -65,6 +66,7 @@ pytest:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+)\%/'
|
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+)\%/'
|
||||||
before_script:
|
before_script:
|
||||||
|
- apk add git
|
||||||
- pip install poetry
|
- pip install poetry
|
||||||
- export PATH="$HOME/.local/bin:$PATH"
|
- export PATH="$HOME/.local/bin:$PATH"
|
||||||
- poetry install --all-extras
|
- poetry install --all-extras
|
||||||
|
|
@ -80,7 +82,7 @@ pytest:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
image: python:latest
|
image: python:alpine
|
||||||
rules:
|
rules:
|
||||||
# Run if merge request
|
# Run if merge request
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
|
@ -100,7 +102,7 @@ build:
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: python:latest
|
image: python:alpine
|
||||||
rules:
|
rules:
|
||||||
# Run if commit that start with a version number is pushed
|
# Run if commit that start with a version number is pushed
|
||||||
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+.*/
|
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+.*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user