mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Lint corrections to gitlab-ci yml
This commit is contained in:
parent
f5ace96fe6
commit
6664ff276b
105
.gitlab-ci.yml
105
.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:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
- prod-deployment
|
- prod-deployment
|
||||||
@ -162,81 +167,81 @@ docker-build-prod:
|
|||||||
win-dev-build:
|
win-dev-build:
|
||||||
stage: dev-deployment
|
stage: dev-deployment
|
||||||
tags:
|
tags:
|
||||||
- win64
|
- win64
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .venv/
|
- .venv/
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_COMMIT_BRANCH == 'dev'"
|
- if: "$CI_COMMIT_BRANCH == 'dev'"
|
||||||
environment:
|
environment:
|
||||||
name: development
|
name: development
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
py -m venv .venv
|
py -m venv .venv
|
||||||
.venv\Scripts\activate.ps1
|
.venv\Scripts\activate.ps1
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- pyinstaller -F main.py
|
- pyinstaller -F main.py
|
||||||
--distpath .
|
--distpath .
|
||||||
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
||||||
--name "crafty_commander"
|
--name "crafty_commander"
|
||||||
--paths .venv\Lib\site-packages
|
--paths .venv\Lib\site-packages
|
||||||
--hidden-import cryptography
|
--hidden-import cryptography
|
||||||
--hidden-import cffi
|
--hidden-import cffi
|
||||||
--hidden-import apscheduler
|
--hidden-import apscheduler
|
||||||
--collect-all tzlocal
|
--collect-all tzlocal
|
||||||
--collect-all tzdata
|
--collect-all tzdata
|
||||||
--collect-all pytz
|
--collect-all pytz
|
||||||
--collect-all six
|
--collect-all six
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}"
|
name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}"
|
||||||
paths:
|
paths:
|
||||||
- app\
|
- app\
|
||||||
- .\crafty_commander.exe
|
- .\crafty_commander.exe
|
||||||
exclude:
|
exclude:
|
||||||
- app\classes\**\*
|
- app\classes\**\*
|
||||||
# Download latest:
|
# Download latest:
|
||||||
# | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/dev/download?job=win-dev-build
|
# | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/dev/download?job=win-dev-build
|
||||||
|
|
||||||
win-prod-build:
|
win-prod-build:
|
||||||
stage: prod-deployment
|
stage: prod-deployment
|
||||||
tags:
|
tags:
|
||||||
- win64
|
- win64
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .venv/
|
- .venv/
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
py -m venv .venv
|
py -m venv .venv
|
||||||
.venv\Scripts\activate.ps1
|
.venv\Scripts\activate.ps1
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- pyinstaller -F main.py
|
- pyinstaller -F main.py
|
||||||
--distpath .
|
--distpath .
|
||||||
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
||||||
--name "crafty_commander"
|
--name "crafty_commander"
|
||||||
--paths .venv\Lib\site-packages
|
--paths .venv\Lib\site-packages
|
||||||
--hidden-import cryptography
|
--hidden-import cryptography
|
||||||
--hidden-import cffi
|
--hidden-import cffi
|
||||||
--hidden-import apscheduler
|
--hidden-import apscheduler
|
||||||
--collect-all tzlocal
|
--collect-all tzlocal
|
||||||
--collect-all tzdata
|
--collect-all tzdata
|
||||||
--collect-all pytz
|
--collect-all pytz
|
||||||
--collect-all six
|
--collect-all six
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}"
|
name: "crafty-${CI_RUNNER_TAGS}-${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}"
|
||||||
paths:
|
paths:
|
||||||
- app\
|
- app\
|
||||||
- .\crafty_commander.exe
|
- .\crafty_commander.exe
|
||||||
exclude:
|
exclude:
|
||||||
- app\classes\**\*
|
- app\classes\**\*
|
||||||
# Download latest:
|
# Download latest:
|
||||||
# | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/master/download?job=win-prod-build
|
# | https://gitlab.com/crafty-controller/crafty-commander/-/jobs/artifacts/master/download?job=win-prod-build
|
||||||
|
Loading…
Reference in New Issue
Block a user