2016-02-27 15:55:43 +01:00
|
|
|
|
2016-02-27 16:40:24 +01:00
|
|
|
language: cpp
|
|
|
|
|
2016-02-27 15:55:43 +01:00
|
|
|
install:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get -qq update
|
2017-09-06 15:10:25 +02:00
|
|
|
- sudo apt-get install -y g++-6 libstdc++-6-dev
|
2017-09-06 15:22:03 +02:00
|
|
|
- sudo apt-get install -y valgrind
|
2017-09-06 15:10:25 +02:00
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
|
2017-07-21 02:47:45 +02:00
|
|
|
|
2017-02-08 11:21:04 +01:00
|
|
|
# Install bison 3.0.4.
|
|
|
|
- wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz
|
|
|
|
- tar -xvzf bison-3.0.4.tar.gz
|
|
|
|
- cd bison-3.0.4
|
|
|
|
- ./configure && make && sudo make install
|
|
|
|
- cd ..
|
|
|
|
|
2017-09-06 15:22:03 +02:00
|
|
|
# Install flex 2.6.4
|
|
|
|
- wget https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
|
|
|
|
- tar -xvzf flex-2.6.4.tar.gz
|
|
|
|
- cd flex-2.6.4
|
|
|
|
- ./configure && make && sudo make install
|
|
|
|
- cd ..
|
|
|
|
|
2017-02-08 11:21:04 +01:00
|
|
|
# Show installed versions.
|
2016-02-27 15:55:43 +01:00
|
|
|
- which g++
|
|
|
|
- g++ -v
|
2017-02-08 11:21:04 +01:00
|
|
|
- bison --version
|
|
|
|
- flex --version
|
|
|
|
- valgrind --version
|
2017-09-06 15:03:32 +02:00
|
|
|
- if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++"; fi
|
2016-02-27 15:55:43 +01:00
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-02-27 17:44:42 +01:00
|
|
|
- clang
|
2016-02-27 15:55:43 +01:00
|
|
|
|
|
|
|
script:
|
2017-09-06 15:22:03 +02:00
|
|
|
# bi build with flex/bison files checked into repo
|
2017-05-27 00:18:52 +02:00
|
|
|
- make -j4
|
2017-09-06 15:22:03 +02:00
|
|
|
- make test
|
|
|
|
- make test_example
|
2017-05-27 00:18:52 +02:00
|
|
|
|
2017-09-06 15:22:03 +02:00
|
|
|
# build flex/bison files in CI
|
|
|
|
- make cleanall
|
|
|
|
- make -j4
|
2016-02-27 16:40:24 +01:00
|
|
|
- make test
|
2017-05-27 00:18:52 +02:00
|
|
|
- make test_example
|
|
|
|
|
|
|
|
# Test if benchmark can be built.
|
2017-07-21 02:47:45 +02:00
|
|
|
# - make benchmark
|