Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
C
cashier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
cashier
Commits
7fe1ed96
Commit
7fe1ed96
authored
Sep 3, 2016
by
Niall Sheridan
Browse files
Options
Downloads
Patches
Plain Diff
Run coverage on all packages
parent
11761972
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+1
-0
1 addition, 0 deletions
.travis.yml
cov.sh
+12
-0
12 additions, 0 deletions
cov.sh
with
13 additions
and
0 deletions
.travis.yml
+
1
−
0
View file @
7fe1ed96
...
@@ -30,6 +30,7 @@ script:
...
@@ -30,6 +30,7 @@ script:
-
gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
-
gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
-
go list ./... |grep -v vendor/ |xargs go vet
-
go list ./... |grep -v vendor/ |xargs go vet
-
go list ./... |grep -v vendor/ |xargs -L1 golint -set_exit_status
-
go list ./... |grep -v vendor/ |xargs -L1 golint -set_exit_status
-
./cov.sh
after_success
:
after_success
:
-
bash <(curl -s https://codecov.io/bash)
-
bash <(curl -s https://codecov.io/bash)
This diff is collapsed.
Click to expand it.
cov.sh
0 → 100755
+
12
−
0
View file @
7fe1ed96
#!/usr/bin/env bash
set
-e
echo
""
>
coverage.txt
for
d
in
$(
go list ./... |
grep
-v
vendor
)
;
do
go
test
-coverprofile
=
profile.out
-covermode
=
atomic
$d
if
[
-f
profile.out
]
;
then
cat
profile.out
>>
coverage.txt
rm
profile.out
fi
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment