Przeglądaj źródła

Merge pull request #235 from stanim/travis

Add support for code coverage (codecov.io) and update Travis
Geoffrey J. Teale 9 lat temu
rodzic
commit
388f76327e
3 zmienionych plików z 14 dodań i 3 usunięć
  1. 1 1
      .gitignore
  2. 10 2
      .travis.yml
  3. 3 0
      README.org

+ 1 - 1
.gitignore

@@ -1,4 +1,4 @@
-
 .DS_Store
 xlsx.test
 *.swp
+coverage.txt

+ 10 - 2
.travis.yml

@@ -4,5 +4,13 @@ install:
   - go get -d -t -v ./... && go build -v ./...
 
 go:
-  - 1.2
-  - 1.3
+  - 1.5
+  - 1.6
+  - tip
+
+script:
+  - go vet ./...
+  - go test -v -coverprofile=coverage.txt -covermode=atomic
+
+after_success:
+  - bash <(curl -s https://codecov.io/bash)

+ 3 - 0
README.org

@@ -1,6 +1,9 @@
 * XLSX
 
+[[https://travis-ci.org/tealeg/xlsx][https://img.shields.io/travis/tealeg/xlsx/master.svg?style=flat-square]]
+[[https://codecov.io/gh/tealeg/xlsx][https://codecov.io/gh/tealeg/xlsx/branch/master/graph/badge.svg]]
 [[https://godoc.org/github.com/tealeg/xlsx][https://godoc.org/github.com/tealeg/xlsx?status.svg]]
+[[https://github.com/tealeg/xlsx#license][https://img.shields.io/badge/license-bsd-orange.svg]]
 
 ** Introduction
 xlsx is a library to simplify reading and writing the XML format used