language: cpp
compiler:
- clang
- gcc
before_install:
- sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
install:
- sudo apt-get install cmake cmake-data
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
script:
- mkdir build
- cd build
- cmake -Dspoa_build_tests=ON -Dspoa_build_executable=ON -DCMAKE_BUILD_TYPE=Release ..
- make
- ./bin/spoa_test
notifications:
email:
on_success: change
on_failure: always