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 - curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-1/protobuf-python-3.0.0-alpha-4.tar.gz | tar xzf -
47 && pushd protobuf-3.0.0-alpha-4
48 && ./configure --prefix=$HOME/protobuf && make && make install
49 && pushd python && python setup.py build && python setup.py install && popd
53 - pushd generator/proto && make && popd
54 - pushd tests && python2 $(which scons) CC=$CC CXX=$CXX && popd