Skip to content

Commit 333b5ff

Browse files
authored
Merge pull request #21 from TerraNovaUser/patch-1
Add code coverage
2 parents 0736536 + bf0701e commit 333b5ff

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage.txt

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
---
22
language: go
33

4+
sudo: required
5+
46
notifications:
57
email: false
68

9+
before_install:
10+
- sudo apt-get -qq update
11+
- sudo apt-get install -y rpm
12+
713
script:
8-
- go test ./...
14+
- make tests
15+
16+
after_success:
17+
- bash <(curl -s https://codecov.io/bash)
18+
19+
env:
20+
matrix:
21+
- GO111MODULE=on

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[![Build Status](https://travis-ci.org/aquasecurity/linux-bench.svg?branch=master)](https://travis-ci.org/aquasecurity/linux-bench)
22
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
3+
[![Coverage Status][cov-img]][cov]
4+
5+
[cov-img]: https://codecov.io/github/aquasecurity/linux-bench/branch/master/graph/badge.svg
6+
[cov]: https://codecov.io/github/aquasecurity/linux-bench
37

48
Linux-bench is a Go application that checks whether The linux operating system is configured securely by running the checks documented in the CIS Distribution Independent Linux Benchmark.
59

makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tests:
2+
GO111MODULE=on go test -v -short -race -timeout 30s -coverprofile=coverage.txt -covermode=atomic ./...

0 commit comments

Comments
 (0)