From 75f484e02494685cf12c594f758f1419751384f2 Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 22:53:05 +0300 Subject: [PATCH 1/7] Create .gitignore Added for CodeCov --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c57100a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +coverage.txt From 3ed1a85c7e158579c33135f1a5ca04c6d0ae100a Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 23:46:28 +0300 Subject: [PATCH 2/7] Update .travis.yml Added for Codecov --- .travis.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a147d2a..67b1937 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,30 @@ --- language: go +sudo: required + notifications: email: false +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y rpm + script: - - go test ./... + - GO111MODULE=on go test ./... + - go test -race -coverprofile=coverage.txt -covermode=atomic ./... + +after_success: + - bash <(curl -s https://codecov.io/bash) + +deploy: + - provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: "$TRAVIS_OS_NAME = linux" + +env: + matrix: + - GO111MODULE=on From 475b6755e12eb076adc83fcb841ecc0b26fe5b04 Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 23:48:11 +0300 Subject: [PATCH 3/7] Update README.md Add Codecov badge --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7e2a535..a44363d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ [![Build Status](https://travis-ci.org/aquasecurity/linux-bench.svg?branch=master)](https://travis-ci.org/aquasecurity/linux-bench) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Coverage Status][cov-img]][cov] + +[cov-img]: https://codecov.io/github/aquasecurity/docker-bench/branch/master/graph/badge.svg +[cov]: https://codecov.io/github/aquasecurity/docker-bench 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. From 807895c9f39b9dd78502ce593d530ffa059bb6b7 Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 23:50:53 +0300 Subject: [PATCH 4/7] Create makefile --- makefile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..d538367 --- /dev/null +++ b/makefile @@ -0,0 +1,3 @@ +tests: + go test -race -timeout 30s -cover ./cmd ./check + GO111MODULE=on go test -v -short -race -timeout 30s -coverprofile=coverage.txt -covermode=atomic ./... From f0f31da08c79b5b58e3e445267dc9d921cbb8f21 Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 23:51:33 +0300 Subject: [PATCH 5/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a44363d..1df65bd 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Coverage Status][cov-img]][cov] -[cov-img]: https://codecov.io/github/aquasecurity/docker-bench/branch/master/graph/badge.svg -[cov]: https://codecov.io/github/aquasecurity/docker-bench +[cov-img]: https://codecov.io/github/aquasecurity/linux-bench/branch/master/graph/badge.svg +[cov]: https://codecov.io/github/aquasecurity/linux-bench 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. From a3ae8a5b482381f6e12c62cb9e480da1077b472f Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Wed, 7 Aug 2019 14:02:16 +0300 Subject: [PATCH 6/7] Update .travis.yml --- .travis.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67b1937..0a8699f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,20 +11,11 @@ before_install: - sudo apt-get install -y rpm script: - - GO111MODULE=on go test ./... - - go test -race -coverprofile=coverage.txt -covermode=atomic ./... + - make tests after_success: - bash <(curl -s https://codecov.io/bash) -deploy: - - provider: script - skip_cleanup: true - script: curl -sL https://git.io/goreleaser | bash - on: - tags: true - condition: "$TRAVIS_OS_NAME = linux" - env: matrix: - GO111MODULE=on From 20b5541ef6a0f859d51952e3185f55d7475e734c Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Wed, 7 Aug 2019 14:04:50 +0300 Subject: [PATCH 7/7] Update makefile --- makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/makefile b/makefile index d538367..c2de16d 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,2 @@ tests: - go test -race -timeout 30s -cover ./cmd ./check GO111MODULE=on go test -v -short -race -timeout 30s -coverprofile=coverage.txt -covermode=atomic ./...