2014-11-22 11:23:55 +00:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2014-11-22 11:47:00 +00:00
|
|
|
|
|
|
|
cache: apt
|
|
|
|
|
|
|
|
|
2014-11-22 11:23:55 +00:00
|
|
|
script:
|
|
|
|
- builddir="${TRAVIS_BUILD_DIR}/src/_build"
|
|
|
|
- mkdir -p ${builddir}
|
|
|
|
- cd ${builddir}
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
|
2014-11-22 11:47:00 +00:00
|
|
|
|
2014-11-22 11:23:55 +00:00
|
|
|
before_install:
|
2014-11-22 11:47:00 +00:00
|
|
|
- cat /proc/cpuinfo
|
|
|
|
- sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
|
|
|
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
|
|
|
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) multiverse"
|
|
|
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) restricted"
|
2014-11-22 11:53:17 +00:00
|
|
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe"
|
2014-11-22 12:02:31 +00:00
|
|
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty"
|
2014-11-22 11:47:00 +00:00
|
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
2014-11-22 11:23:55 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-11-22 11:47:00 +00:00
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
|
|
|
|
- sudo apt-get install -y cmake git-core g++ libstdc++-4.8-dev libboost-dev gnuradio libarmadillo-dev liblapack-dev libopenblas-dev gfortran libssl-dev
|