1 # Travis CI has no ability to handle 3 langauges (c, c++, python)
2 # and it overrides $CC/$CXX if language is set to c/c++ (only one, not both).
4 # Set language to python since at least the result of that is something useful.
11 # Manage the C/C++ compiler manually
14 - CC=gcc-4.8 CXX=g++-4.8
15 - CC=gcc-4.9 CXX=g++-4.9
17 - CC=clang CXX=clang++
22 - ubuntu-toolchain-r-test
33 - export PATH=$HOME/.local/bin:$HOME/protobuf/bin:$PATH
34 - export MAKEFLAGS=-j$(grep processor /proc/cpuinfo | wc -l)
40 # Seems to be issues with concurrent builds
46 - pip install protobuf
47 - test \! -d $HOME/protobuf
48 && curl -L https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 | tar xjf -
49 && pushd protobuf-2.6.1
50 && ./configure --prefix=$HOME/protobuf && make && make install
52 || true # True if test is false as the cache exists
55 - pushd generator/proto && make && popd
56 - pushd tests && python2 $(which scons) CC=$CC CXX=$CXX && popd