forked from game-ci/unity3d-gitlab-ci-example-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (58 loc) · 1.58 KB
/
.travis.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
sudo: required
language: bash
env:
global:
- IMAGE_NAME=gableroux/unity3d:2018.2.6f1
- BUILD_NAME=ExampleProjectName
services:
- docker
before_install:
- openssl aes-256-cbc -K $encrypted_82766e747237_key -iv $encrypted_82766e747237_iv
-in Unity_v2018.x.ulf.enc -out ./Unity_v2018.x.ulf -d
- export UNITY_LICENSE_CONTENT=`cat Unity_v2018.x.ulf`
- rm Unity_v2018.x.ulf
- docker pull $IMAGE_NAME
jobs:
include:
- stage: test
script: "chmod +x ./ci/docker_test.sh && ./ci/docker_test.sh"
env: TEST_PLATFORM=editmode
addons:
artifacts:
target_paths:
- "$(pwd)/$TEST_PLATFORM-results.xml"
- stage: test
script: "chmod +x ./ci/docker_test.sh && ./ci/docker_test.sh"
env: TEST_PLATFORM=playmode
addons:
artifacts:
target_paths:
- "$(pwd)/$TEST_PLATFORM-results.xml"
- stage: build
env: BUILD_TARGET=StandaloneLinux64
script: "chmod +x ./ci/docker_build.sh && ./ci/docker_build.sh"
addons:
artifacts:
target_paths:
- "./Builds/"
- stage: build
env: BUILD_TARGET=StandaloneOSX
script: "chmod +x ./ci/docker_build.sh && ./ci/docker_build.sh"
addons:
artifacts:
target_paths:
- "./Builds/"
- stage: build
env: BUILD_TARGET=StandaloneWindows64
script: "chmod +x ./ci/docker_build.sh &&./ci/docker_build.sh"
addons:
artifacts:
target_paths:
- "./Builds/"
- stage: build
env: BUILD_TARGET=WebGL
script: "chmod +x ./ci/docker_build.sh && ./ci/docker_build.sh"
addons:
artifacts:
target_paths:
- "./Builds/"