-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (45 loc) · 1.39 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
image: gableroux/unity3d:2020.1.13f1
stages:
- build_and_test
# If you are looking for a place where to add 'UNITY_LICENSE_FILE' nad secrets, please visit your project's gitlab page:
# settings > CI/CD > Variables instead
variables:
BUILD_NAME: XR4All_UnityExample
UNITY_VERSION: 2020.1.13f1
UNITY_ACTIVATION_FILE: ./Unity_v$UNITY_VERSION.alf
.unity_before_script: &unity_before_script
before_script:
- chmod +x ./ci/before_script.sh && ./ci/before_script.sh
.cache: &cache
cache:
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-$CI_COMMIT_REF_SLUG-$TEST_PLATFORM"
paths:
- indebrauVR/Library/
# run this job when you need to request a license
# you may need to follow activation steps from documentation
get-activation-file:
when: manual
stage: build_and_test
script:
- chmod +x ./ci/get_activation_file.sh && ./ci/get_activation_file.sh
artifacts:
paths:
- $UNITY_ACTIVATION_FILE
expire_in: 10 min # Expiring this as artifacts may contain sensitive data and should not be kept public
.test: &test
stage: build_and_test
<<: *unity_before_script
<<: *cache
script:
- ls
- chmod +x ./ci/test.sh && ./ci/test.sh
artifacts:
when: always
paths:
- $(pwd)/$TEST_PLATFORM-results.xml
- $(pwd)/$TEST_PLATFORM-coverage/
coverage: /<Linecoverage>(.*?)</Linecoverage>/
test-editmode:
<<: *test
variables:
TEST_PLATFORM: editmode