Skip to content
Snippets Groups Projects
.travis.yml 883 B
Newer Older
  • Learn to ignore specific revisions
  • Serge Bazanski's avatar
    Serge Bazanski committed
    dist: trusty
    
    addons:
      apt:
        sources:
          - ubuntu-toolchain-r-test
        packages:
          - wget
          - pkg-config
          - zip
          - g++
          - zlib1g-dev
          - unzip
          - python
    
    
    Oliver Herms's avatar
    Oliver Herms committed
    before_install:
    
    Serge Bazanski's avatar
    Serge Bazanski committed
      - wget https://github.com/bazelbuild/bazel/releases/download/0.14.1/bazel-0.14.1-installer-linux-x86_64.sh
      - sha256sum -c .travis.bazel-0.14.1-installer-linux-x86_64.sh.sha256
      - bash bazel-0.14.1-installer-linux-x86_64.sh --user
    
    
    Oliver Herms's avatar
    Oliver Herms committed
    script:
    
    Serge Bazanski's avatar
    Serge Bazanski committed
    - mkdir -p $HOME/gopath/src/github.com/bio-routing/
    - ln -s $TRAVIS_BUILD_DIR $HOME/gopath/src/github.com/bio-routing/bio-rd || true
    - cp .bazelrc.travis .bazelrc
    
    - bazel coverage //...
    
    - bazel build //vendor/github.com/q3k/goveralls
    - bazel-bin/vendor/github.com/q3k/goveralls/linux_amd64_stripped/goveralls -coverprofile=$(find bazel-testlogs/ -iname coverage.dat -or -iname baseline_coverage.dat | paste -sd ',') -merge=false
    
    Serge Bazanski's avatar
    Serge Bazanski committed