forked from unitystation/unitystation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (63 loc) · 2.52 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
60
61
62
63
sudo: required
language: bash
env:
global:
- IMAGE_NAME=gableroux/unity3d:2018.3.14f1
- BUILD_NAME=Unitystation
services:
- docker
before_install:
- openssl aes-256-cbc -K $encrypted_940f74d0491b_key -iv $encrypted_940f74d0491b_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 ./Travis/docker_test.sh && ./Travis/docker_test.sh"
# env: TEST_PLATFORM=editmode
# addons:
# artifacts:
# target_paths:
# - "$(pwd)/$TEST_PLATFORM-results.xml"
# - stage: test
# script: "chmod +x ./Travis/docker_test.sh && ./Travis/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 ./Travis/docker_build.sh && ./Travis/docker_build.sh"
- "sudo chmod -R 777 ./Builds/"
- "cd ./Builds/"
- "zip -r ${BUILD_TARGET}.zip ./${BUILD_TARGET}/"
- stage: build
env: BUILD_TARGET=StandaloneOSX
script:
- "chmod +x ./Travis/docker_build.sh && ./Travis/docker_build.sh"
- "sudo chmod -R 777 ./Builds/"
- "cd ./Builds/"
- "zip -r ${BUILD_TARGET}.zip ./${BUILD_TARGET}/"
- stage: build
env: BUILD_TARGET=StandaloneWindows64
script:
- "chmod +x ./Travis/docker_build.sh &&./Travis/docker_build.sh"
- "sudo chmod -R 777 ./Builds/"
- "cd ./Builds/"
- "zip -r ${BUILD_TARGET}.zip ./${BUILD_TARGET}/"
deploy:
provider: releases
api_key:
secure: H1ELkzF5U81lBUsOqWX4pVGvE4oNvUuOtc1cIliunp3+BMSjUMNMcIoZvsVdbrlDaTV9AuGVEZw1mydaw7T7KpEp2L7RpgI1XcAR6qM28mFNO6vqUAtYzmo89MeXtKu1DWqowHqALbI2ML5K9Y7E+oi7Mov8pwOBAle7bZTS6nZrupr3LDI7C+0CNDUyxBztxWYfOSQ+r7NtMAd1yVCfbGqKFHJ6fQC912xyLqlqVXMhpgWlglvUfpGMUCn0/4OtJLinrWnJ+LbmzdV5kyOwlV5eJ+Jrur6ipFvZ6zBwjoJ0jbVddIoTAimI9qDkjKfZnArCDwTKcrCip2slUqX83EXtLDBO1fUejaE1/OfEUvJ/VETv2d3hkYKjOnAlfQMPKcy35Hk5ksUpfMi7yE0hHqm5rGbomUsmDneNYoSJFbGhBNJQ94Mu+CKcFS4GBnSlkyln+8NWnY7VmAbX5cV0sa4WevcoQSLnEBVJAE2bJg7Z+bUIssG89qzjx4UfIbqlAIlC7HYhm8mnajqSdGH0T8tgqoXJ6AsvGq6y2JCCukQVyG0CPaMhy3M7WxBIwWs0WmxefBuMEfH14LESxC/1JghLDVzWYhZLlm5Vbd3YCA8rAV1z5n55ZHfB3/FWpkcMbwRMxEaKSHEJ6c8CyEKOXnqvu4NxYUB7hkB6I95n1xI=
file: "${BUILD_TARGET}.zip"
skip_cleanup: true
# draft: true
name: Experimental Build $TRAVIS_TAG $(date +%Y-%m-%d)
body: There will be bugs!
prerelease: true
on:
tags: true