-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
73 lines (63 loc) · 1.67 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
62
63
64
65
66
67
68
69
70
71
72
73
stages:
- build
- deploy
# triggers an update of the Narupa unity plugin repo.
trigger_plugin_update:
stage: deploy
only:
- master
script:
- apt-get update && apt-get install --yes curl
- "curl -X POST -F token=${NARUPA_UNITY_PLUGIN_TOKEN} -F ref=master https://gitlab.com/api/v4/projects/14856986/trigger/pipeline"
# triggers an update of the conda package in "Narupa iMD conda package"
trigger_conda_update:
stage: deploy
only:
- master
script:
- apt-get update && apt-get install --yes curl
- |
curl \
-H "Authorization: Bearer $APPVEYOR_TOKEN" \
-H "Content-Type: application/json" \
--request POST \
--data '{
"accountName": "IntangibleRealitiesLab",
"projectSlug": "narupa-imd-conda-package",
"branch": "master",
}' \
https://ci.appveyor.com/api/builds
variables:
BUILD_NAME: Narupa iMD
.unity_before_script: &unity_before_script
image: "gableroux/unity3d:2019.3.0f6-windows"
before_script:
- chmod +x ./ci/before_script.sh && ./ci/before_script.sh
.test: &test
stage: build
<<: *unity_before_script
script:
- chmod +x ./ci/test.sh && ./ci/test.sh
artifacts:
paths:
- $(pwd)/$TEST_PLATFORM-results.xml
- $(pwd)/$TEST_PLATFORM-junit-results.xml
reports:
junit: $(pwd)/$TEST_PLATFORM-junit-results.xml
when: always
test-editmode:
<<: *test
variables:
TEST_PLATFORM: editmode
.build: &build
stage: build
<<: *unity_before_script
script:
- chmod +x ./ci/build.sh && ./ci/build.sh
artifacts:
paths:
- ./Builds/
build-StandaloneWindows64:
<<: *build
variables:
BUILD_TARGET: StandaloneWindows64