This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.travis.yml
58 lines (54 loc) · 1.46 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
language: cpp
sudo: false
addons:
apt:
packages:
- g++-7
- clang-5.0
- cmake
- libxrandr-dev
- libudev-dev
- libopenal-dev
- libflac-dev
- libvorbis-dev
- libgtk-3-dev
- freeglut3-dev
sources:
- ubuntu-toolchain-r-test
before_script:
- git clone https://github.com/sfml/sfml && cd sfml
- git checkout tags/2.5.0
- mkdir build && cd build && cmake .. -G"$GENERATOR" $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX=../install
- cmake --build . --target install
- cd ../..
script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -G"$GENERATOR" $CMAKE_FLAGS -DSFML_ROOT=../sfml/install -DCMAKE_INSTALL_PREFIX=../install
- cmake --build . --target install --config Release
- cmake --build . --target package --config Release
matrix:
fast_finish: true
include:
- os: linux
compiler: g++-7
env:
- GENERATOR="Unix Makefiles"
- CMAKE_FLAGS="-DCMAKE_CXX_COMPILER=/usr/bin/g++-7"
- MATRIX_EVAL="CC=gcc-7 && GXX=g++-7"
- os: linux
compiler: clang
env:
- GENERATOR="Unix Makefiles"
- CMAKE_FLAGS=""
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- os: osx
osx_image: xcode9
env:
- GENERATOR="Xcode"
- CMAKE_FLAGS="-DSFML_BUILD_FRAMEWORKS=TRUE -DSFML_MISC_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install"
- os: windows
env:
- GENERATOR="Visual Studio 15 2017 Win64"
- CMAKE_FLAGS=""
before_install:
- eval "${MATRIX_EVAL}"