diff --git a/.gitignore b/.gitignore index 51af806..55b486b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ out/ # End of https://www.gitignore.io/api/go vendor/ +coverage.txt majestic_million*.csv \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index bfe1d56..65fdb1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ install: - curl https://glide.sh/get | sh - glide install script: -- go test -v ./... +- go test -race -coverprofile=coverage.txt -covermode=atomic -v ./... after_success: +- curl -sL https://codecov.io/bash | bash - bash -l ./release.sh \ No newline at end of file diff --git a/README.md b/README.md index 5bcea77..7a2ace6 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build Status](https://travis-ci.org/aswinkarthik93/csvdiff.svg?branch=master)](https://travis-ci.org/aswinkarthik93/csvdiff) [![Go Doc](https://godoc.org/github.com/aswinkarthik93/csvdiff?status.svg)](https://godoc.org/github.com/aswinkarthik93/csvdiff) [![Go Report Card](https://goreportcard.com/badge/github.com/aswinkarthik93/csvdiff)](https://goreportcard.com/report/github.com/aswinkarthik93/csvdiff) +[![codecov](https://codecov.io/gh/aswinkarthik93/csvdiff/branch/master/graph/badge.svg)](https://codecov.io/gh/aswinkarthik93/csvdiff) [![Downloads](https://img.shields.io/github/downloads/aswinkarthik93/csvdiff/latest/total.svg)](https://github.com/aswinkarthik93/csvdiff/releases) [![Latest release](https://img.shields.io/github/release/aswinkarthik93/csvdiff.svg)](https://github.com/aswinkarthik93/csvdiff/releases) @@ -12,10 +13,10 @@ A Blazingly fast diff tool for comparing csv files. Csvdiff is a difftool to compute changes between two csv files. -* It is not a traditional diff tool. It is most suitable for comparing csv files dumped from database tables. GNU diff tool is orders of magnitude faster on comparing line by line. -* Supports specifying group of columns as primary-key. -* Supports selective comparison of fields in a row. -* Compares csvs of million records csv in under 2 seconds. Comparisons and benchmarks [here](/benchmark). +- It is not a traditional diff tool. It is most suitable for comparing csv files dumped from database tables. GNU diff tool is orders of magnitude faster on comparing line by line. +- Supports specifying group of columns as primary-key. +- Supports selective comparison of fields in a row. +- Compares csvs of million records csv in under 2 seconds. Comparisons and benchmarks [here](/benchmark). ## Demo @@ -47,7 +48,7 @@ yum install https://github.com/aswinkarthik93/csvdiff/releases/download/v1.0.0/c - For debian -``` +```bash curl -sL https://github.com/aswinkarthik93/csvdiff/releases/download/v1.0.0/csvdiff_1.0.0_linux_64-bit.deb -O dpkg --install csvdiff_*_linux_64-bit.deb ``` @@ -62,7 +63,7 @@ curl -sL https://github.com/aswinkarthik93/csvdiff/releases/download/v1.0.0/csvd - Build using Go -``` +```bash go get -u github.com/aswinkarthik93/csvdiff ```