2015-06-08 18:57:15 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2015-06-08 19:33:59 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- SHARED=OFF
|
|
|
|
- SHARED=ON
|
|
|
|
|
2015-06-08 19:49:36 +00:00
|
|
|
before_install:
|
2015-06-08 20:20:18 +00:00
|
|
|
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
2015-06-08 19:49:36 +00:00
|
|
|
- sudo apt-get update -qq
|
2015-06-09 13:54:04 +00:00
|
|
|
- if [ "$SHARED" == "ON" ]; then sudo apt-get install -y libcurl4-openssl-dev libgif-dev libjpeg-dev libz-dev libpng-dev libtinyxml-dev libpixman-1-dev liballegro4.2-dev ; fi
|
2015-06-08 19:49:36 +00:00
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install -y -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
|
|
|
|
2015-06-08 18:57:15 +00:00
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-03-29 22:06:41 +00:00
|
|
|
- cmake .. -DUSE_SHARED_CURL=$SHARED -DUSE_SHARED_GIFLIB=$SHARED -DUSE_SHARED_JPEGLIB=$SHARED -DUSE_SHARED_ZLIB=$SHARED -DUSE_SHARED_LIBPNG=$SHARED -DUSE_SHARED_TINYXML=$SHARED -DUSE_SHARED_PIXMAN=$SHARED -DUSE_SHARED_ALLEGRO4=$SHARED -DENABLE_TESTS=ON
|
2015-06-08 18:57:15 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- "make"
|
2015-09-21 19:45:25 +00:00
|
|
|
- "ctest --output-on-failure"
|