Skip to content

Commit

Permalink
use lcov 1.14 in travis.ci & flat square badges
Browse files Browse the repository at this point in the history
  • Loading branch information
voutcn committed Jul 29, 2019
1 parent d3260ad commit 1af4f05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: xenial
before_install:
- sudo apt-get update
- sudo apt-get install -y lcov
- sudo apt-get install -y wget
language: python
python:
- "2.7"
Expand All @@ -16,11 +16,14 @@ script:
- megahit --test --no-hw-accel
after_success:
# Create lcov report
- lcov --capture --directory . --output-file coverage.info.1
- lcov --remove coverage.info.1 '/usr/*' --output-file coverage.info.2 # filter system-files
- lcov --remove coverage.info.2 '*xxhash/*' --output-file coverage.info.3 # filter xxhash-files
- lcov --remove coverage.info.3 '*parallel_hashmap/*' --output-file coverage.info.4 # filter parallel-hashmap-files
- lcov --remove coverage.info.4 '*pprintpp/*' --output-file coverage.info.5 # filter pprintpp files
- lcov --list coverage.info.5 # debug info
- wget http://downloads.sourceforge.net/ltp/lcov-1.14.tar.gz
- tar zvxf lcov-1.14.tar.gz
- export PATH=lcov-1.14/bin/:${PATH}
- lcov --capture --directory . --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
- lcov --remove coverage.info '*xxhash/*' --output-file coverage.info # filter xxhash-files
- lcov --remove coverage.info '*parallel_hashmap/*' --output-file coverage.info # filter parallel-hashmap-files
- lcov --remove coverage.info '*pprintpp/*' --output-file coverage.info # filter pprintpp files
- lcov --list coverage.info # debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) -f coverage.info.5 || echo "Codecov did not collect coverage reports"
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
MEGAHIT
=======

[![BioConda Install](https://img.shields.io/conda/dn/bioconda/megahit.svg?style=flag&label=BioConda%20install)](https://anaconda.org/bioconda/megahit) [![Build Status](https://travis-ci.org/voutcn/megahit.svg?branch=master)](https://travis-ci.org/voutcn/megahit) [![codecov](https://codecov.io/gh/voutcn/megahit/branch/master/graph/badge.svg)](https://codecov.io/gh/voutcn/megahit)
[![BioConda Install](https://img.shields.io/conda/dn/bioconda/megahit.svg?style=flat-square&label=BioConda%20install)](https://anaconda.org/bioconda/megahit)
[![Downloads](https://img.shields.io/github/downloads/voutcn/megahit/total?style=flat-square)](https://github.com/voutcn/megahit/releases)
[![Build Status](https://img.shields.io/travis/voutcn/megahit?style=flat-square)](https://travis-ci.org/voutcn/megahit)
[![codecov](https://img.shields.io/codecov/c/github/voutcn/megahit?style=flat-square)](https://codecov.io/gh/voutcn/megahit)

MEGAHIT is an ultra-fast and memory-efficient NGS assembler. It is optimized for metagenomes, but also works well on generic single genome assembly (small or mammalian size) and single-cell assembly.

Expand Down

0 comments on commit 1af4f05

Please sign in to comment.