https://github.com/twitter/heron
Raw File
Tip revision: 2d48d069106a9ca11920d3781098f13d3a76485a authored by Heron Release System on 23 March 2016, 07:29:50 UTC
Release 0.13.1-C (2016-03-23)
Tip revision: 2d48d06
.travis.yml
sudo: required

language: java

jdk:
  - oraclejdk8

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.8
      - g++-4.8
      - python2.7
      - wget
      - pkg-config
      - zip
      - zlib1g-dev

env:
  - CC=gcc-4.8 CXX=g++-4.8

before_install:

  # download and install libunwind
  - wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz
  - tar xvfz libunwind-1.1.tar.gz
  - cd libunwind-1.1 && ./configure --prefix=/usr && sudo make install && cd ..

  # download and install bazel
  - wget 'https://github.com/bazelbuild/bazel/releases/download/0.1.2/bazel-0.1.2-installer-linux-x86_64.sh'
  - chmod +x bazel-0.1.2-installer-linux-x86_64.sh
  - ./bazel-0.1.2-installer-linux-x86_64.sh --user

script: 
  - which gcc-4.8
  - gcc --version
  - which g++-4.8
  - g++ --version 

  # append the bazel default bazelrc to travis-ci/bazel.rc for using rules provided by bazel
  - cat ~/.bazelrc >> tools/travis-ci/bazel.rc
  - ./bazel_configure.py

  # build heron
  - bazel --bazelrc=tools/travis-ci/bazel.rc build heron/...

  # run heron unit tests
  - bazel --bazelrc=tools/travis-ci/bazel.rc test  heron/...

  # build packages
  - bazel --bazelrc=tools/travis-ci/bazel.rc build scripts/packages:tarpkgs
  - bazel --bazelrc=tools/travis-ci/bazel.rc build scripts/packages:binpkgs
back to top