forked from Oxore/tetris-csfml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (71 loc) · 1.9 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
language: c
os: linux
env:
- PFX=$TRAVIS_BUILD_DIR/deps/prefix
compiler:
- gcc
- clang
# Get Archlinux environment
script:
- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"
archlinux:
packages:
- cmake
- xorg
- openal
- libvorbis
- flac
script:
- mkdir -p $PFX deps/SFML/build deps/CSFML/build
- pushd deps/SFML/build
&& cmake
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_INSTALL_PREFIX=$PFX
-DSFML_MISC_INSTALL_PREFIX=$PFX
-DSFML_DEPENDENCIES_INSTALL_PREFIX=$PFX
..
&& make install
&& popd
- pushd deps/CSFML/build
&& cmake
-DBUILD_SHARED_LIBS=OFF
-DCSFML_LINK_SFML_STATICALLY=TRUE
-DCMAKE_PREFIX_PATH=$PFX -DCMAKE_INSTALL_PREFIX=$PFX
..
&& make install
&& popd
- make PREFIX=$PFX SFML_STATIC=y Q=
jobs:
include:
- os: osx
compiler: clang
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install csfml
script:
- make Q=
- os: osx
compiler: clang
env:
- PFX=$TRAVIS_BUILD_DIR/deps/prefix
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install freetype
script:
- mkdir -p $PFX deps/SFML/build deps/CSFML/build
- pushd deps/SFML/build
&& cmake
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_INSTALL_PREFIX=$PFX
-DSFML_MISC_INSTALL_PREFIX=$PFX
-DSFML_DEPENDENCIES_INSTALL_PREFIX=$PFX
..
&& make install
&& popd
- pushd deps/CSFML/build
&& cmake
-DBUILD_SHARED_LIBS=OFF
-DCSFML_LINK_SFML_STATICALLY=TRUE
-DCMAKE_PREFIX_PATH=$PFX -DCMAKE_INSTALL_PREFIX=$PFX
..
&& make install
&& popd
- make PREFIX=$PFX SFML_STATIC=y Q=