-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.sh
More file actions
executable file
·22 lines (19 loc) · 872 Bytes
/
.travis.sh
File metadata and controls
executable file
·22 lines (19 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
wget https://downloads.tuxfamily.org/godotengine/3.2/Godot_v3.2-stable_osx.64.zip
unzip -d godot Godot_v3.2-stable_osx.64.zip
GODOT=godot/Godot.app/Contents/MacOS/Godot
elif [ "$TRAVIS_OS_NAME" = "windows" ]; then
curl -o godot.zip https://downloads.tuxfamily.org/godotengine/3.2/Godot_v3.2-stable_win64.exe.zip
unzip -d godot godot.zip
GODOT=godot/Godot_v3.2-stable_win64.exe
${GODOT} --editor --quit || echo "Done"
else
wget https://downloads.tuxfamily.org/godotengine/3.2/Godot_v3.2-stable_linux_headless.64.zip
unzip -d godot Godot_v3.2-stable_linux_headless.64.zip
GODOT=godot/Godot_v3.2-stable_linux_headless.64
${GODOT} --export x11 Temp.x11 || echo "Done"
fi
# TODO: find way to import assets cleanly:
${GODOT} -s addons/gut/gut_cmdln.gd --path $PWD -gdir=res://Script/Test -gexit