-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (59 loc) · 1.73 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
59
sudo: required
language: bash
env:
global:
- IMAGE_NAME=gableroux/unity3d:2018.4.0f1
- BUILD_NAME=ExampleProjectName
services:
- docker
before_install:
#- openssl aes-256-cbc -K $encrypted_f01b1606ddb9_key -iv $encrypted_f01b1606ddb9_iv
# -in Unity_v2018.x.ulf.enc -out ./Unity_v2018.x.ulf -d
#- openssl aes-256-cbc -K $encrypted_0de4b0bdf3ca_key -iv $encrypted_0de4b0bdf3ca_iv -in Unity_v2018.x.ulf.enc -out ./Unity_v2018.x.ulf -d
- openssl aes-256-cbc -K $encrypted_15c5764140be_key -iv $encrypted_15c5764140be_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
- chmod a+x ./ci/docker_test.sh
- chmod a+x ./ci/docker_build.sh
jobs:
include:
- stage: test
script: ./ci/docker_test.sh
env: TEST_PLATFORM=editmode
addons:
artifacts:
target_paths:
- "$(pwd)/$TEST_PLATFORM-results.xml"
- stage: test
script: ./ci/docker_test.sh
env: TEST_PLATFORM=playmode
addons:
artifacts:
target_paths:
- "$(pwd)/$TEST_PLATFORM-results.xml"
- stage: build
env: BUILD_TARGET=StandaloneOSX
script: ./ci/docker_build.sh
addons:
artifacts:
target_paths:
- "./Builds/"
- stage: build
env: BUILD_TARGET=StandaloneWindows64
script:
- "chmod +x ./ci/* && ./ci/docker_build.sh"
- "sudo chmod -R 777 ./Builds/"
- "cd ./Builds/"
- "zip -r StandaloneWindows64.zip ./StandaloneWindows64/"
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file: StandaloneWindows64.zip
skip_cleanup: true
#on:
#: tags: true
addons:
artifacts:
target_paths:
- "./Builds/"