forked from game-ci/unity3d-gitlab-ci-example-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
85 lines (70 loc) · 1.53 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
74
75
76
77
78
79
80
81
82
83
84
image: "gableroux/unity3d:2018.2.6f1"
stages:
- test
- build
- deploy
variables:
BUILD_NAME: ExampleProjectName
.unity_before_script: &unity_before_script
before_script:
- chmod +x ./ci/before_script.sh && ./ci/before_script.sh
.test: &test
stage: test
<<: *unity_before_script
script:
- chmod +x ./ci/test.sh && ./ci/test.sh
artifacts:
paths:
- $(pwd)/$TEST_PLATFORM-results.xml
test-editmode:
<<: *test
variables:
TEST_PLATFORM: editmode
test-playmode:
<<: *test
variables:
TEST_PLATFORM: playmode
.build: &build
stage: build
#tip: you can reuse same stage to do everything in parallel and reduce overall time
# stage: test
<<: *unity_before_script
script:
- chmod +x ./ci/build.sh && ./ci/build.sh
artifacts:
paths:
- ./Builds/
#tip: uncomment following lines if you'd like to build only on master branch
# only:
# - master
build-StandaloneLinux64:
<<: *build
variables:
BUILD_TARGET: StandaloneLinux64
build-StandaloneOSX:
<<: *build
variables:
BUILD_TARGET: StandaloneOSX
#Note: build target names changed in recent versions, use this for versions < 2017.2:
# build-StandaloneOSXUniversal:
# <<: *build
# variables:
# BUILD_TARGET: StandaloneOSXUniversal
build-StandaloneWindows64:
<<: *build
variables:
BUILD_TARGET: StandaloneWindows64
build-WebGL:
<<: *build
variables:
BUILD_TARGET: WebGL
pages:
image: alpine:latest
stage: deploy
script:
- mv ./Builds/WebGL public
artifacts:
paths:
- public
only:
- master