language: java
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq protobuf-compiler
  - sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
  - wget -nv http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
  - tar zxf thrift-0.9.3.tar.gz
  - cd thrift-0.9.3
  - chmod +x ./configure
  - ./configure --disable-gen-erl --disable-gen-hs --without-ruby --without-haskell --without-erlang
  - sudo make install
  - cd ..

language: java
dist: precise
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq protobuf-compiler
  - sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
  - wget -nv http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
  - tar zxf thrift-0.9.3.tar.gz
  - cd thrift-0.9.3
  - chmod +x ./configure
  - ./configure --disable-gen-erl --disable-gen-hs --without-ruby --without-haskell --without-erlang
  - sudo make install
  - cd ..

Fix Travis CI builds for pull requests
PARQUET-1102: Fix Travis CI builds for pull requests

Travis CI migrated the default Ubuntu image version from precise to trusty on Sep 1st, 2017. This is probably the reason why all PR builds sent after Sep 1st failed. This PR tries to work around this issue by sticking to Ubuntu precise. We should migrate the build to Ubuntu trusty later, though.

Author: Cheng Lian <lian.cs.zju@gmail.com>

Closes #66 from liancheng/fix-pr-builds and squashes the following commits:

3cfce8e [Cheng Lian] Stick to Ubuntu precise on Travis CI
