Skip to content

Commit fc7301d

Browse files
committed
Updated CICD
1 parent 3d45e46 commit fc7301d

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

.gitlab-ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
stages:
2-
- compile
2+
- build
33
- test
4-
- deploy
4+
- package
55

66
variables:
77
plugin: AttributesExtension
@@ -11,23 +11,30 @@ cache:
1111
paths:
1212
- Build/
1313

14-
build plugin:
15-
stage: compile
14+
before_script:
15+
# Download Piperift's CICD scripts
16+
- git clone https://github.com/PipeRift/CICDScripts Lib
17+
18+
build:
19+
stage: build
1620
script:
17-
- cmd.exe /c $LIB_PATH/BuildPlugin.bat
21+
- cd Lib
22+
- cmd.exe /c BuildPlugin.bat
1823

19-
unit test:
24+
test:
2025
stage: test
2126
script:
22-
- py $LIB_PATH/test_plugin.py
27+
- cd Lib
28+
- py test_plugin.py
2329
artifacts:
30+
paths:
31+
- Test/Report.xml
2432
reports:
2533
junit: Test/Report.xml
26-
paths:
27-
- Test
2834

2935
upload:
30-
stage: deploy
36+
stage: package
3137
script:
32-
- cmd.exe /c $LIB_PATH/CompressPlugin.bat
33-
- py $LIB_PATH/upload.py
38+
- cd Lib
39+
- cmd.exe /c CompressPlugin.bat
40+
- py upload.py

0 commit comments

Comments
 (0)