forked from hyrise/sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
51 lines (42 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: cpp
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get install -y g++-6 libstdc++-6-dev
- sudo apt-get install -y valgrind
- 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
# 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 ..
# 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 ..
# Show installed versions.
- which g++
- g++ -v
- bison --version
- flex --version
- valgrind --version
- if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++"; fi
compiler:
- gcc
- clang
script:
# bi build with flex/bison files checked into repo
- make -j4
- make test
- make test_example
# build flex/bison files in CI
- make cleanall
- make -j4
- make test
- make test_example
# Test if benchmark can be built.
# - make benchmark