This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Only run coverage on merges/pushes to master (
#1783
)
master
Ethan Koenig
Bo-Yi Wu
8 years ago
parent
19d889daa2
commit
ff96bda138
2 changed files
with
7 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
.drone.yml
+4
-0
Makefile
+ 3
- 1
.drone.yml
View File
@@ -73,8 +73,10 @@ pipeline:
coverage:
coverage:
image: plugins/coverage
image: plugins/coverage
server: https://coverage.gitea.io
server: https://coverage.gitea.io
commands:
- make test-coverage
when:
when:
event: [ push, tag, pull_request ]
event: [ push, tag ]
docker:
docker:
image: plugins/docker
image: plugins/docker
+ 4
- 0
Makefile
View File
@@ -80,6 +80,10 @@ integrations: build
.PHONY: test
.PHONY: test
test:
test:
go test $(PACKAGES)
.PHONY: test-coverage
test-coverage:
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
.PHONY: test-vendor
.PHONY: test-vendor
Write
Preview
Loading…
Cancel
Save