add travis.yml

This commit is contained in:
Pedro 2016-02-27 15:55:43 +01:00
parent 5267d070e8
commit ad072dd79d
1 changed files with 20 additions and 0 deletions

20
.travis.yml Normal file
View File

@ -0,0 +1,20 @@
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get install -y bison flex
- sudo apt-get install -y g++-4.8 libstdc++-4.8-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
- which g++
- g++ -v
language: cpp
compiler:
- gcc
script:
- make
- sudo make install
- make test