forked from Drewol/unnamed-sdvx-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (62 loc) · 2.06 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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
before_install:
- eval "${MATRIX_EVAL}"
- "sudo apt-get -qq update"
- "sudo apt-get install -y cmake"
- "sudo apt-get install -y libegl1-mesa-dev"
- "sudo apt-get install -y libfreetype6-dev"
- "sudo apt-get install -y libogg-dev"
- "sudo apt-get install -y libvorbis-dev"
- "sudo apt-get install -y libsdl2-dev"
- "sudo apt-get install -y zlib1g-dev --reinstall"
- "sudo apt-get install -y libjpeg-dev --reinstall"
install:
- CMAKE_URL="https://cmake.org/files/v3.8/cmake-3.8.0-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=${TRAVIS_BUILD_DIR}/cmake/bin:${PATH}"
- cmake --version
#Libpng
- LIBPNG_URL="http://download.sourceforge.net/libpng/libpng-1.6.24.tar.gz"
- mkdir libpng && travis_retry wget --no-check-certificate --quiet -O - ${LIBPNG_URL} | tar --strip-components=1 -xz -C libpng
- cd libpng
- cmake .
- LIBS="-lpthread ./configure --prefix=/usr --disable-static &&"
- make
- sudo make install
- cd ..
#SDL-2.0.9
- SDL_URL="https://www.libsdl.org/release/SDL2-2.0.9.tar.gz"
- mkdir sdl && travis_retry wget --no-check-certificate --quiet -O - ${SDL_URL} | tar --strip-components=1 -xz -C sdl
- cd sdl
- ./configure
- make
- sudo make install
- cd ..
- os: osx
osx_image: xcode9.3
addons:
homebrew:
packages:
- cmake
- freetype
- libvorbis
- sdl2
- libpng
- jpeg
before_install:
- "git submodule update --init --recursive"
script:
- "gcc --version"
- "cmake ."
- "make"