add caching, IRC notifications

reduce verbosity

try using .cache folder

valid travis file

name file

push travis notifications to openrct2-dev

list directory contents

untar in the subfolder

see whats in that directory

ls more dirs

.patch is in subdir too

dont be a dummy

only download if files arent present

syntax

check correct files

check if anything is in cache

try filename with no period
This commit is contained in:
Kevin Burke 2014-05-26 01:44:08 +09:00
parent 27d630d551
commit 37434bd6c2
1 changed files with 15 additions and 9 deletions

View File

@ -1,20 +1,20 @@
language: c
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y --force-yes binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
# fetch precompiled SDL2 + headers for MinGW and push it into the expected directory
- mkdir -p cache
- export SDL2_PV=2.0.3
- wget http://libsdl.org/release/SDL2-devel-${SDL2_PV}-mingw.tar.gz
- tar -xzvf SDL2-devel-${SDL2_PV}-mingw.tar.gz
- if [[ ! -f cache/SDL2-devel-${SDL2_PV}-mingw.tar.gz ]]; then wget http://libsdl.org/release/SDL2-devel-${SDL2_PV}-mingw.tar.gz --output-document cache/SDL2-devel-${SDL2_PV}-mingw.tar.gz; fi
- pushd cache && tar -xzf SDL2-devel-${SDL2_PV}-mingw.tar.gz && popd
# but first fix SDL2 bug
- wget "https://github.com/anyc/anyc-overlay/raw/master/media-libs/libsdl2-mingw/files/libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch"
- pushd SDL2-${SDL2_PV}/i686-w64-mingw32/include/SDL2/ && patch -p2 < ../../../../libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch && popd
- if [[ ! -f cache/libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch ]]; then wget "https://github.com/anyc/anyc-overlay/raw/master/media-libs/libsdl2-mingw/files/libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch" --output-document cache/libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch; fi
- pushd cache/SDL2-${SDL2_PV}/i686-w64-mingw32/include/SDL2/ && patch -p2 < ../../../../libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch && popd
- sudo mkdir -p /usr/local/cross-tools/
- sudo mv SDL2-${SDL2_PV}/i686-w64-mingw32 /usr/local/cross-tools/
- sudo cp -r cache/SDL2-${SDL2_PV}/i686-w64-mingw32 /usr/local/cross-tools/
# build a wrapper that looks for the sdl2.pc file in the new directory
- echo -e "#! /bin/sh\\nexport PKG_CONFIG_LIBDIR=/usr/local/cross-tools/i686-w64-mingw32/lib/pkgconfig\\npkg-config \$@" > i686-w64-mingw32-pkg-config
@ -26,8 +26,14 @@ script:
- pushd build
- cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Debug ..
- make
#- make VERBOSE=1
- popd
#notifications:
#irc: "irc.freenode.net#openrct2"
notifications:
irc: "irc.freenode.net#openrct2-dev"
on_failure: always
on_success: change
cache:
directories:
- cache
apt: true