Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up valtools subtree #325

Merged
merged 38 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9e83980
add license
kyleam Jul 31, 2024
2aff7c4
add target to generate docs
kyleam Jul 31, 2024
b832e83
add command to check traceability matrix
kyleam Jul 31, 2024
7b5d684
add target to copy traceability matrix to output directory
kyleam Jul 31, 2024
18d8b50
add target to generate source tarball
kyleam Jul 31, 2024
042400b
add command to format 'go test' output
kyleam Jul 31, 2024
84075a3
add target to run tests
kyleam Jul 31, 2024
8ffd337
add command to calculate coverage per file
kyleam Jul 31, 2024
39af907
add target to run tests with coverage
kyleam Jul 31, 2024
850c02a
add target to generate scores for mpn.scorecard
kyleam Jul 31, 2024
37c8099
add script to generate metadata for mpn.scorecard
kyleam Jul 31, 2024
7f4e55f
metadata: include Go version
kyleam Jul 31, 2024
1bc0100
add target to generate pkg.json
kyleam Jul 31, 2024
47c132a
add target to generate all output
kyleam Jul 31, 2024
323f616
add help target
kyleam Jul 31, 2024
e18fb39
add readme
kyleam Jul 31, 2024
bdee43c
vt-gen-docs: support disabling doc generation
kyleam Jul 31, 2024
6dabac5
fmttests: write output for failed tests to stderr
kyleam Jul 31, 2024
9601bac
add target to check which Go files missing from coverage JSON
kyleam Jul 31, 2024
8db79bc
readme: add missing word
kyleam Aug 6, 2024
0110578
readme: fix stale example
kyleam Aug 7, 2024
f69fdf0
treewide: absorb some assignments into if statement
kyleam Aug 13, 2024
230f9dc
filecov: rename variable to avoid shadowing
kyleam Aug 13, 2024
928bcb2
treewide: clean up whitespace to silence golangci-lint
kyleam Aug 13, 2024
63ff593
validation: delete now unused requirements and stories
kyleam Aug 13, 2024
e8f4788
cmd/bbi/main.go: delete commented code for generating docs
kyleam Aug 13, 2024
f730642
docs: delete generated command documentation
kyleam Aug 13, 2024
d486660
readme: fix typos
kyleam Aug 13, 2024
fcb87f3
add internal/valtools/ subtree
kyleam Aug 13, 2024
0b74fd5
go.mod: update for internal/valtools addition
kyleam Aug 13, 2024
f5d8bbd
.golangci.yml: ignore internal/valtools
kyleam Aug 13, 2024
10adb42
internal/tools: define executable for generating command docs
kyleam Aug 13, 2024
47eec79
docs: generate command docs
kyleam Aug 13, 2024
59fff13
add script for running unit tests
kyleam Aug 13, 2024
a8c5bd9
add script for running integration tests
kyleam Aug 13, 2024
55eb273
make: wire up internal/valtools
kyleam Aug 13, 2024
6d6c7b0
docs: define a traceability matrix
kyleam Aug 13, 2024
6548cb3
ci: use scripts/run-unit-tests for unit tests
kyleam Aug 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
go-version: ${{ matrix.config.go }}
- name: Unit tests
shell: bash
run: go list ./... | grep -v integration | xargs go test
run: ./scripts/run-unit-tests
- name: Build bbi
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ issues:
- gosec
exclude-dirs:
- (^|/)mock($|/)
- internal/valtools

linters-settings:
errcheck:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ MAKE_HOME=${PWD}

install:
cd cmd/bbi; go install ${LDFLAGS}

VT_TEST_RUNNERS = scripts/run-unit-tests
VT_TEST_RUNNERS += scripts/run-integration-tests
include internal/valtools/rules.mk
7 changes: 0 additions & 7 deletions cmd/bbi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ import (
// buildTime can be set from LDFLAGS during development.
var buildTime string

// if want to generate docs
//
// import "github.com/spf13/cobra/doc"
// err := doc.GenMarkdownTree(cmd.RootCmd, "../../docs/bbi")
// if err != nil {
// panic(err)
// }
func main() {
cmd.Execute(buildTime)
}
31 changes: 0 additions & 31 deletions docs/bbi/bbi.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/bbi/init.md

This file was deleted.

66 changes: 0 additions & 66 deletions docs/bbi/nonmem/clean/clean.md

This file was deleted.

91 changes: 0 additions & 91 deletions docs/bbi/nonmem/nonmem.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/bbi/nonmem/probs/probs.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/bbi/nonmem/reclean/reclean.md

This file was deleted.

48 changes: 0 additions & 48 deletions docs/bbi/nonmem/run/local/local.md

This file was deleted.

Loading