-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
94 lines (85 loc) · 2.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# language
language: objective-c
osx_image: xcode9.2
rvm:
- 2.2 #see before_install for getting RVM stable.
# Matrix
matrix:
include:
# Windows Build
- name: "Windows"
env:
# - TRAVIS_TAG="Deploy-2019.2.6f1" # This sets the tag on a build
- PROJECT_NAME="SeasonShift"
- UNITY_PROJECT_PATH="Game"
- DEPLOY_UNITYPACKAGE="path set in deploy script"
- SYSTEM="win"
cache:
directories:
- $UNITY_DOWNLOAD_CACHE
# OSX Build
- name: "Mac"
env:
# - TRAVIS_TAG="Deploy-2019.2.6f1" # This sets the tag on a build
- PROJECT_NAME="SeasonShift"
- UNITY_PROJECT_PATH="Game"
- DEPLOY_UNITYPACKAGE="path set in deploy script"
- SYSTEM="mac"
cache:
directories:
- $UNITY_DOWNLOAD_CACHE
# Linux Build
- name: "Linux"
env:
# - TRAVIS_TAG="Deploy-2019.2.6f1" # This sets the tag on a build
- PROJECT_NAME="SeasonShift"
- UNITY_PROJECT_PATH="Game"
- DEPLOY_UNITYPACKAGE="path set in deploy script"
- SYSTEM="lin"
cache:
directories:
- $UNITY_DOWNLOAD_CACHE
# WebGL Build
- name: "WebGL"
env:
# - TRAVIS_TAG="Deploy-2019.2.6f1" # This sets the tag on a build
- PROJECT_NAME="SeasonShift"
- UNITY_PROJECT_PATH="Game"
- DEPLOY_UNITYPACKAGE="path set in deploy script"
- SYSTEM="web"
cache:
directories:
- $UNITY_DOWNLOAD_CACHE
allow_failures:
- name: "Mac"
- name: "Linux"
fast_finish: true
before_install:
- chmod a+x ./buildScripts/*.sh
- rvm install 2.2.1
install:
- cat /etc/hosts
- pwd
- ./buildScripts/install-unity.sh
before_script:
#- ./buildScripts/activate-license.sh
script:
- if [[ "${SYSTEM}" == "win" ]]; then eval ./buildScripts/winBuild.sh; fi
- if [[ "${SYSTEM}" == "mac" ]]; then eval ./buildScripts/macBuild.sh; fi
- if [[ "${SYSTEM}" == "lin" ]]; then eval ./buildScripts/linBuild.sh; fi
- if [[ "${SYSTEM}" == "web" ]]; then eval ./buildScripts/webBuild.sh; fi
- ./buildScripts/run-tests.sh
after_success:
#- ./buildScripts/export-unity-package.sh
before_deploy:
- DEPLOY_UNITYPACKAGE="$(ls -a release/*.zip | head -n 1)"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: $DEPLOY_UNITYPACKAGE
skip_cleanup: true
overwrite: true
on:
tags: true
after_deploy:
#- ./buildScripts/return-license.sh