Skip to content
Snippets Groups Projects
.travis.yml 861 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 build //vendor/github.com/mattn/goveralls
    
    - bazel test //...
    - bazel coverage //...
    
    Serge Bazanski's avatar
    Serge Bazanski committed
    - bazel-bin/vendor/github.com/mattn/goveralls/linux_amd64_stripped/goveralls -coverprofile=$(find bazel-testlogs/ -name coverage.dat | paste -sd "," -)