language: rust
sudo: required

rust:
  - stable

# spsps needs gcc 4.8 or greater
before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq

install:
  - sudo apt-get install -qq gcc-4.9
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90

before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
  - cd spsps
  - mkdir build
  - cd build
  - cmake ..
  - VERBOSE=1 make
  - cd ../..
script:
  - |
      travis-cargo build &&
      travis-cargo test &&
      travis-cargo bench &&
      travis-cargo doc
after_success:
  - travis-cargo --only stable doc-upload
  - travis-cargo coveralls


language: rust
sudo: required

rust:
  - stable

# spsps needs gcc 4.8 or greater
# Proper building with -fPIC needs CMake 3
before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo add-apt-repository -y ppa:andykimpe/cmake3
  - sudo apt-get update -qq

install:
  - sudo apt-get install -qq gcc-4.9
  - sudo apt-get -y purge cmake
  - sudo apt-get -y install cmake3
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90

before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
  - cd spsps
  - mkdir build
  - cd build
  - cmake ..
  - VERBOSE=1 make
  - cd ../..
script:
  - |
      travis-cargo build &&
      travis-cargo test &&
      travis-cargo bench &&
      travis-cargo doc
after_success:
  - travis-cargo --only stable doc-upload
  - travis-cargo coveralls


Install cmake 3 to get proper fpic usage
Install cmake 3 to get proper fpic usage
