forked from ubisoft/mixer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitlab.com-ci.yml
75 lines (70 loc) · 1.64 KB
/
gitlab.com-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Specialized CICD script to run on gitlab.com: only run unittests on tags
stages:
- pre_release
- release
flake8:
tags:
- linux
- docker
image: python:3
stage: pre_release
script:
- pip install flake8==3.7.9 flake8-black pep8-naming flake8-bugbear
- flake8 -v
zip:
tags:
- linux
stage: pre_release
script:
- cp CHANGELOG.md README.md LICENSE mixer/
artifacts:
name: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHORT_SHA}"
paths:
- mixer
expire_in: 1 week
.on_version_tag: &tpl_on_version_tag
only:
refs:
- /^v[0-9]+.[0-9]+.[0-9]+$/
release:
<<: *tpl_on_version_tag
dependencies:
- zip
tags:
- linux
- docker
image: python:3
stage: release
script:
- pip install requests
- python -m zipfile -c mixer-${CI_COMMIT_REF_NAME}.zip mixer/
- python -m gitlab.release mixer-${CI_COMMIT_REF_NAME}.zip
artifacts:
paths:
- mixer-${CI_COMMIT_REF_NAME}.zip
# https://gitlab-ncsa.ubisoft.org/help/ci/yaml/README.md
unittest:
<<: *tpl_on_version_tag
stage: pre_release
tags:
- blender
except:
variables:
- $CI_COMMIT_MESSAGE =~ /\[skip-tests\]/
variables:
MIXER_BLENDER_ZIP_BASENAME: blender-2.82a-windows64
MIXER_BLENDER_VERSION_BASE: "2.82"
MIXER_BASH_EXE: C:\Program Files\Git\bin\bash.exe
VRTIST_PORT: 25600 # In case a server is already running on our default port on the test computer
MIXER_TEST_OUTPUT: logs\tests
script:
- gitlab\run_unittest.bat
cache:
paths:
- gitlab/blender/cache
artifacts:
paths:
- logs\tests\*.xml
reports:
junit:
- logs\tests\*.xml