.travis.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. language: cpp
  2. sudo: required
  3. compiler:
  4. - clang
  5. - gcc
  6. env:
  7. - PURPOSE=compile-with-make
  8. - PURPOSE=compile-with-cmake
  9. - PURPOSE=compile-with-bazel
  10. - PURPOSE=unittest
  11. - PURPOSE=compile-with-make-all-options
  12. - PURPOSE=compile-with-cmake-all-options
  13. - PURPOSE=compile-with-bazel-all-options
  14. before_script:
  15. - ulimit -c unlimited -S # enable core dumps
  16. before_install:
  17. - wget --no-clobber https://github.com/bazelbuild/bazel/releases/download/0.25.1/bazel_0.25.1-linux-x86_64.deb && sudo dpkg -i bazel_0.25.1-linux-x86_64.deb
  18. - sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config # thrift dependencies
  19. - wget http://www.us.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && tar -xf thrift-0.11.0.tar.gz && cd thrift-0.11.0/ && ./configure --prefix=/usr --with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no CXXFLAGS="-Wno-unused-variable" && make -j4 && sudo make install && cd -
  20. install:
  21. - sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev libboost-dev libssl-dev libevent-dev libboost-test-dev libgoogle-glog-dev
  22. - sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo env "PATH=$PATH" cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
  23. - sudo apt-get install -y gdb # install gdb
  24. - wget https://mesalink.s3-us-west-1.amazonaws.com/MesaLink-1.0.0-x86_64_trusty.deb && sudo dpkg -i MesaLink-1.0.0-x86_64_trusty.deb # install MesaLink for trusty
  25. script:
  26. - sh build_in_travis_ci.sh