-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (53 loc) · 1.28 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
workflow:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "develop"
when: always
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH != "develop"
variables:
DEPLOY: "OFF"
stages:
- test
- bundle
- deploy
variables:
GIT_STRATEGY: clone
DEPLOY:
value: "ON"
description: "ON/OFF - Whether the builds should be deployed"
default:
tags:
- LOCAL
cli-test:
stage: test
script:
- .\run.bat -t -v -d -la 46 -LA 56 -lo 4 -LO 16 -l 500000 -dl 1200 -n 7 --plot-all -p heat_map
allow_failure: true
bundle:
stage: bundle
script:
- . pyside2-rcc ".\mode_s\gui\gui.qrc" -o "$(Get-Location)\mode_s\gui\qrc_gui.py"
- .\build.ps1
- type .\mode_s.spec
- Compress-Archive .\dist\mode_s\ -DestinationPath mode_s.zip
- Move-Item mode_s.zip -Destination bundle
artifacts:
paths:
- bundle
rules:
- if: $DEPLOY == "ON"
pages:
stage: deploy
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none
script:
- New-Item -ItemType Directory -Force -Path public
- Copy-Item bundle\* -Recurse -Destination public
- Write-Output "Download Page -- $CI_PAGES_URL"
artifacts:
paths:
- ./public
needs:
- bundle
rules:
- if: $DEPLOY == "ON"