2015-08-15 05:15:19 -07:00
|
|
|
sudo: false
|
2014-08-14 16:06:16 -07:00
|
|
|
language: cpp
|
2015-07-19 10:24:55 -07:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2015-07-19 10:35:29 -07:00
|
|
|
- g++-4.7
|
2015-07-19 10:24:55 -07:00
|
|
|
- g++-5
|
|
|
|
- libpthread-stubs0-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libx11-dev
|
|
|
|
- libxrandr-dev
|
|
|
|
- libfreetype6-dev
|
|
|
|
- libglew-dev
|
|
|
|
- libjpeg-dev
|
|
|
|
- libgpgme11-dev
|
|
|
|
- libsndfile1-dev
|
|
|
|
- libopenal-dev
|
|
|
|
- libudev-dev
|
2014-08-14 16:06:16 -07:00
|
|
|
|
2015-08-15 05:15:19 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/SFML
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
|
2014-08-14 16:06:16 -07:00
|
|
|
install:
|
2015-08-15 05:15:19 -07:00
|
|
|
- >
|
|
|
|
if [ ! -d "$HOME/SFML/lib" ]; then
|
|
|
|
wget -O SFML.tar.gz https://github.com/LaurentGomila/SFML/archive/2.2.tar.gz;
|
|
|
|
tar -xzf SFML.tar.gz;
|
|
|
|
cd SFML-2.2;
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$HOME/SFML .;
|
|
|
|
make -j2 && make install;
|
|
|
|
cd ..;
|
|
|
|
else
|
|
|
|
echo 'Using cached SFML directory.';
|
|
|
|
fi
|
2014-08-14 16:06:16 -07:00
|
|
|
|
2015-07-19 10:24:55 -07:00
|
|
|
before_script:
|
|
|
|
- mkdir build_gcc-4.7
|
|
|
|
- mkdir build_gcc-5.1
|
2015-08-15 05:15:19 -07:00
|
|
|
- export SFML_ROOT=$HOME/SFML
|
2015-07-19 10:24:55 -07:00
|
|
|
|
|
|
|
script:
|
2015-07-19 10:35:29 -07:00
|
|
|
- cd build_gcc-5.1
|
2015-07-19 10:24:55 -07:00
|
|
|
- export CXX="g++-5"
|
2015-08-15 05:15:19 -07:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DTGUI_BUILD_EXAMPLES=TRUE -DTGUI_BUILD_TESTS=TRUE .. && make -j2 && cd tests/ && ./tests && cd ..
|
2015-07-19 10:35:29 -07:00
|
|
|
- cd ../build_gcc-4.7
|
|
|
|
- export CXX="g++-4.7"
|
2015-08-15 05:15:19 -07:00
|
|
|
- cmake .. && make -j2
|