diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72bac27b..cf3229fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,8 @@ +# Crafty Controller 4.0 - Lint & Build Pipes +# [Maintainer: Zedifus(https://gitlab.com/Zedifus)] +################################################### +# yamllint disable rule:line-length +--- stages: - lint - prod-deployment @@ -162,81 +167,81 @@ docker-build-prod: win-dev-build: stage: dev-deployment tags: - - win64 + - win64 cache: paths: - .venv/ rules: - - if: "$CI_COMMIT_BRANCH == 'dev'" + - if: "$CI_COMMIT_BRANCH == 'dev'" environment: name: development script: - - | - $ErrorActionPreference = "Stop" - py -m venv .venv - .venv\Scripts\activate.ps1 - pip install pyinstaller - pip install -r requirements.txt - - pyinstaller -F main.py - --distpath . - --icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico - --name "crafty_commander" - --paths .venv\Lib\site-packages - --hidden-import cryptography - --hidden-import cffi - --hidden-import apscheduler - --collect-all tzlocal - --collect-all tzdata - --collect-all pytz - --collect-all six + - | + $ErrorActionPreference = "Stop" + py -m venv .venv + .venv\Scripts\activate.ps1 + pip install pyinstaller + pip install -r requirements.txt + - pyinstaller -F main.py + --distpath . + --icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico + --name "crafty_commander" + --paths .venv\Lib\site-packages + --hidden-import cryptography + --hidden-import cffi + --hidden-import apscheduler + --collect-all tzlocal + --collect-all tzdata + --collect-all pytz + --collect-all six artifacts: name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}" paths: - - app\ - - .\crafty_commander.exe + - app\ + - .\crafty_commander.exe exclude: - - app\classes\**\* - # Download latest: - # | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/dev/download?job=win-dev-build + - app\classes\**\* + # Download latest: + # | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/dev/download?job=win-dev-build win-prod-build: stage: prod-deployment tags: - - win64 + - win64 cache: paths: - .venv/ rules: - - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" + - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" environment: name: production script: - - | - $ErrorActionPreference = "Stop" - py -m venv .venv - .venv\Scripts\activate.ps1 - pip install pyinstaller - pip install -r requirements.txt - - pyinstaller -F main.py - --distpath . - --icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico - --name "crafty_commander" - --paths .venv\Lib\site-packages - --hidden-import cryptography - --hidden-import cffi - --hidden-import apscheduler - --collect-all tzlocal - --collect-all tzdata - --collect-all pytz - --collect-all six + - | + $ErrorActionPreference = "Stop" + py -m venv .venv + .venv\Scripts\activate.ps1 + pip install pyinstaller + pip install -r requirements.txt + - pyinstaller -F main.py + --distpath . + --icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico + --name "crafty_commander" + --paths .venv\Lib\site-packages + --hidden-import cryptography + --hidden-import cffi + --hidden-import apscheduler + --collect-all tzlocal + --collect-all tzdata + --collect-all pytz + --collect-all six artifacts: name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}" paths: - - app\ - - .\crafty_commander.exe + - app\ + - .\crafty_commander.exe exclude: - - app\classes\**\* - # Download latest: - # | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/master/download?job=win-prod-build + - app\classes\**\* + # Download latest: + # | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/master/download?job=win-prod-build