-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.travis.yml
More file actions
75 lines (65 loc) · 2.37 KB
/
.travis.yml
File metadata and controls
75 lines (65 loc) · 2.37 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
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
sudo: required
dist: trusty
notifications:
email: false
slack: polyengine:Fah16tvbyOphIl7FGHAVVhaB
# Enable C++ support
language: cpp
# Enable compiler cache to speed up compilation
cache: ccache
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
global:
- COMPILER=g++-6
matrix:
- GAME_NAME=GlobalGameJam2018Game
- GAME_NAME=SGJ2017Game
- GAME_NAME=SGJ2018Game
- GAME_NAME=SandboxPhysics3D
- GAME_NAME=SandboxRendering
before_install:
- export CXX=${COMPILER}
# Add Qt 5.9.2 ppa
- sudo add-apt-repository --yes ppa:beineri/opt-qt592-trusty
- sudo apt-get update -qq
- sudo apt-get install -qq mesa-common-dev libx11-dev git
- sudo apt-get install -qq libepoxy-dev libsoil-dev libassimp-dev libfreetype6-dev libopenal-dev libogg-dev libvorbis-dev libbox2d-dev libbullet-dev
- sudo apt-get -y install qt59base
# Workaround for not working `sudo apt-get install -qq libsdl2-dev` https://github.com/travis-ci/travis-ci/issues/8317
- wget https://www.libsdl.org/release/SDL2-2.0.7.tar.gz -O SDL2-2.0.7.tar.gz
- tar -xzf SDL2-2.0.7.tar.gz
-
install:
- (cd SDL2-2.0.7 && ./configure && make && sudo make install)
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
############################################################################
# Install a recent CMake
############################################################################
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
else
brew upgrade cmake || brew install cmake
fi
- cmake --version
before_script:
############################################################################
# Go back to the root of the project and setup the build directory
############################################################################
- cd ${TRAVIS_BUILD_DIR}
script:
- source /opt/qt59/bin/qt59-env.sh
- git clone https://github.com/KNTGPolygon/PolyEngine.git
- cd PolyEngine/PolyEngine/Scripts
- python3 ProjectTool.py -u ${TRAVIS_BUILD_DIR}/${GAME_NAME}
- cd ${TRAVIS_BUILD_DIR}/${GAME_NAME}/Build
- make