-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
34 lines (33 loc) · 1.01 KB
/
buildspec.yml
File metadata and controls
34 lines (33 loc) · 1.01 KB
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
version: 0.2
env:
variables:
UNITY_COMMAND: "xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' unity-editor -batchmode -nographics -logfile /dev/stdout -quit"
BUILD_OUTPUT_FOLDER: 'Builds/Win64'
BUILD_OUTPUT_NAME: 'Drone Hunt'
MAJOR_VERSION: '0'
MINOR_VERSION: '0'
PATCH_VERSION: '1'
exported-variables:
- CODEBUILD_BUILD_NUMBER
- BUILD_OUTPUT_NAME
- SEM_VERSION
git-credential-helper: yes
phases:
pre_build:
commands:
- git submodule update --init --recursive
- SEM_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}
- eval ${UNITY_COMMAND} -username "${UNITY_EMAIL}" -password "${UNITY_PASSWORD}" -serial "${UNITY_SERIAL}"
build:
commands:
- eval ${UNITY_COMMAND} -projectPath='.' -buildWindows64Player '${BUILD_OUTPUT_FOLDER}/${BUILD_OUTPUT_NAME}'
post_build:
commands:
- eval ${UNITY_COMMAND} -returnLicense
artifacts:
files:
- '**/*'
base-directory: ${BUILD_OUTPUT_FOLDER}
cache:
paths:
- 'Library/**/*'