language: cpp

compiler:
  - gcc
  - clang

env:
  global:
    - SAMP_SDK_ROOT=$TRAVIS_BUILD_DIR/sdk
  matrix:
    - STATIC=ON
    - STATIC=OFF

install:
  - sudo apt-get update -qq
  - sudo apt-get install -y gcc-multilib g++-multilib python-pip doxygen

  - sudo pip install ply cidl

  - wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.sh
  - sudo sh cmake-2.8.12.2-Linux-i386.sh --exclude-subdir --prefix=/usr

  - git clone https://github.com/Zeex/samp-plugin-sdk.git sdk

before_script:
  - cmake . -DCMAKE_C_COMPILER=${CC}
            -DCMAKE_CXX_COMPILER=${CXX}
            -DSAMPGDK_STATIC=${STATIC}
            -DSAMPGDK_BUILD_PLUGINS=ON
            -DSAMPGDK_BUILD_AMALGAMATION=ON

script:
  - make
  - make package

language: cpp

compiler:
  - gcc
  - clang

env:
  global:
    - SAMP_SDK_ROOT=$TRAVIS_BUILD_DIR/sdk
  matrix:
    - STATIC=ON
    - STATIC=OFF

install:
  - sudo apt-add-repository -y ppa:kubuntu-ppa/backports
  - sudo apt-get update -qq
  - sudo apt-get install -y gcc-multilib g++-multilib cmake python-pip doxygen
  - sudo pip install ply cidl
  - git clone https://github.com/Zeex/samp-plugin-sdk.git sdk

before_script:
  - cmake . -DCMAKE_C_COMPILER=${CC}
            -DCMAKE_CXX_COMPILER=${CXX}
            -DSAMPGDK_STATIC=${STATIC}
            -DSAMPGDK_BUILD_PLUGINS=ON
            -DSAMPGDK_BUILD_AMALGAMATION=ON

script:
  - make
  - make package

Install CMake from a PPA
Install CMake from a PPA

This should fix the certificate issue on Travis CI:

Connecting to cmake.org (cmake.org)|66.194.253.19|:443... connected.

ERROR: no certificate subject alternative name matches

	requested host name `cmake.org'.

To connect to cmake.org insecurely, use `--no-check-certificate'.
