This repository was archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
84 lines (72 loc) · 2.71 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
language: cpp
# OS config, depends on actual 'os' in build matrix
dist: xenial
notifications:
email:
on_success: change
on_failure: always
stages:
- check
- build
env:
global:
- SCONS_CACHE=$HOME/.scons_cache
- SCONS_CACHE_LIMIT=1024
- OPTIONS="debug_symbols=yes verbose=no progress=yes builtin_libpng=yes"
- GODOT_REPO_URL="https://github.com/godotengine/godot"
- GODOT_DIR="$HOME/godot/"
- GODOT_BINARY_DIR="$HOME/godot/bin/"
cache:
directories:
- $SCONS_CACHE
matrix:
include:
- name: Linux headless (debug, GCC 9, with editor)
stage: build
env: PLATFORM=server TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes" GODOT_BINARY="godot_server.x11.tools.64"
os: linux
compiler: gcc-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- &gcc9_deps [gcc-9, g++-9]
- &linux_deps [libasound2-dev, libgl1-mesa-dev, libglu1-mesa-dev, libx11-dev, libxcursor-dev, libxi-dev, libxinerama-dev, libxrandr-dev]
- name: Linux headless (release_debug, GCC 9, no editor)
stage: build
env: PLATFORM=server TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes" GODOT_BINARY="godot_server.x11.opt.debug.64"
os: linux
compiler: gcc-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- &gcc9_deps [gcc-9, g++-9]
- &linux_deps [libasound2-dev, libgl1-mesa-dev, libglu1-mesa-dev, libx11-dev, libxcursor-dev, libxi-dev, libxinerama-dev, libxrandr-dev]
- name: Linux headless (release, clang)
stage: build
env: PLATFORM=server TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=no" GODOT_BINARY="godot_server.x11.opt.64.llvm"
os: linux
compiler: clang
addons:
apt:
packages:
- &linux_deps [libasound2-dev, libgl1-mesa-dev, libglu1-mesa-dev, libx11-dev, libxcursor-dev, libxi-dev, libxinerama-dev, libxrandr-dev]
before_install:
- eval "${MATRIX_EVAL}"
install:
- pip install --user scons;
before_script:
- cd "$HOME"
- git clone --depth=1 "$GODOT_REPO_URL" && cd "$GODOT_DIR"
script:
- scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $OPTIONS $EXTRA_ARGS &&
if [ "$TARGET" != "release" ]; then
if [ "$PLATFORM" = "server" ]; then
$TRAVIS_BUILD_DIR/test.sh "$GODOT_BINARY_DIR""$GODOT_BINARY";
else
$TRAVIS_BUILD_DIR/test.sh "$GODOT_BINARY_DIR""$GODOT_BINARY" --no-window;
fi
fi