-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
68 lines (60 loc) · 1.99 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
language: cpp
env:
global:
# Ubuntu version
- LINUX_DIST=trusty
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
# Global build options and C++ flags
- CXX_FLAGS="-std=c++17 -Wall -pedantic -Werror -Wno-variadic-macros -Wno-long-long -Wno-shadow"
# Misc
- RUN_TESTS=true
- COVERAGE=false
matrix:
include:
- os: linux
dist: trusty
sudo: true
compiler: gcc
addons:
apt:
packages: &precise_latest_boost_packages
- gcc-9
- g++-9
sources: &precise_latest_boost_sources
- ubuntu-toolchain-r-test
before_install:
# Combine global build options with OS/compiler-dependent options
- export CMAKE_OPTIONS=${CMAKE_OPTIONS}" "${ENV_CMAKE_OPTIONS}
- export CXX_FLAGS=${CXX_FLAGS}" "${ENV_CXX_FLAGS}
- sudo apt-get update -qq
install:
- export CXX="g++-9"
# Download and install recent cmake
- |
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz"
mkdir -p ${DEPS_DIR}/cmake
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}/cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
# Download and install SFML
- sudo apt-get install libudev-dev libvorbis-dev libflac-dev libopenal-dev libfreetype6-dev libx11-dev libxrandr-dev libxcursor-dev
- git clone https://github.com/SFML/SFML --branch master
- cd SFML
- cmake .
- make
- sudo mv include/* /usr/include/
- sudo mv lib/* /usr/lib/
- cd ..
# Download and install TGUI (due to authentication issue - manual PPA repo adding is forbidden :()
- git clone https://github.com/texus/TGUI --branch 0.8
- cd TGUI
- cmake .
- make -j2
- sudo make install
- cd ..
script:
############################################################################
# Build main and j3x
############################################################################
- ./build_and_run_tests.bash