Update CI
This commit is contained in:
parent
e61f7a2ae6
commit
f0bb35b7e7
@ -3,6 +3,9 @@ image: python:3.10
|
|||||||
variables:
|
variables:
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||||
PIPENV_VENV_IN_PROJECT: 1
|
PIPENV_VENV_IN_PROJECT: 1
|
||||||
|
UPDATE_WINDOWS_DEPS:
|
||||||
|
description: "Set to \"1\" to update windows deps"
|
||||||
|
value: "0"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -42,11 +45,15 @@ update_windows_deps:
|
|||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never
|
when: never
|
||||||
|
- if: $UPDATE_WINDOWS_DEPS == "1"
|
||||||
|
when: always
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
changes:
|
changes:
|
||||||
- Pipfile
|
- Pipfile
|
||||||
- Pipfile.lock
|
- Pipfile.lock
|
||||||
when: always
|
when: always
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
before_script:
|
before_script:
|
||||||
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
- choco install python --version=$PYTHON_VERSION -y --no-progress
|
- choco install python --version=$PYTHON_VERSION -y --no-progress
|
||||||
@ -64,11 +71,11 @@ commit_windows_deps:
|
|||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never
|
when: never
|
||||||
|
- if: $UPDATE_WINDOWS_DEPS == "1"
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
changes:
|
changes:
|
||||||
- Pipfile
|
- Pipfile
|
||||||
- Pipfile.lock
|
- Pipfile.lock
|
||||||
when: always
|
|
||||||
needs:
|
needs:
|
||||||
- update_windows_deps
|
- update_windows_deps
|
||||||
image: alpine
|
image: alpine
|
||||||
|
Loading…
Reference in New Issue
Block a user