forked from graphql/libgraphqlparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 795 Bytes
/
.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
language: cpp
compiler:
- clang
- gcc
addons:
apt:
packages:
- valgrind
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
# bison and flex are not installed in CI because
# 1) the versions in Travis are too old, and
# 2) up-to-date bison and flex output should be checked in.
# Versions of g++ prior to 4.8 don't have very good C++11 support.
- sudo apt-get install -y g++-4.8
&& sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- wget https://googletest.googlecode.com/files/gtest-1.7.0.zip
&& cd test
&& unzip ../gtest-1.7.0.zip
&& cd ..
&& rm gtest-1.7.0.zip
script: mkdir build && cd build && cmake .. -Dtest=ON && make && test/runTests && make memcheck