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

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 --depth 1 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

Set depth to 1 for SDK repo clone
Set depth to 1 for SDK repo clone

Downloading all commits is a waste of time, we only need the latest
version.
