Skip to content

Commit 7d11b49

Browse files
Merge pull request #51 from fuweid/add-content-check
Add common project content/checks
2 parents 5a6d9f3 + 8e51df4 commit 7d11b49

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
language: go
22
go:
33
- 1.7.x
4+
- tip
5+
6+
install:
7+
- go get -t ./...
8+
- go get -u github.com/vbatts/git-validation
9+
- go get -u github.com/kunalkushwaha/ltag
10+
11+
before_script:
12+
- pushd ..; git clone https://github.com/containerd/project; popd
13+
14+
script:
15+
- DCO_VERBOSITY=-q ../project/script/validate/dco
16+
- ../project/script/validate/fileheader ../project/
17+
- go test -v -race -covermode=atomic -coverprofile=coverage.txt ./...
18+
19+
after_success:
20+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-runc
22

33
[![Build Status](https://travis-ci.org/containerd/go-runc.svg?branch=master)](https://travis-ci.org/containerd/go-runc)
4-
4+
[![codecov](https://codecov.io/gh/containerd/go-runc/branch/master/graph/badge.svg)](https://codecov.io/gh/containerd/go-runc)
55

66
This is a package for consuming the [runc](https://github.com/opencontainers/runc) binary in your Go applications.
77
It tries to expose all the settings and features of the runc CLI. If there is something missing then add it, its opensource!
@@ -12,3 +12,14 @@ or greater.
1212
## Docs
1313

1414
Docs can be found at [godoc.org](https://godoc.org/github.com/containerd/go-runc).
15+
16+
## Project details
17+
18+
The go-runc is a containerd sub-project, licensed under the [Apache 2.0 license](./LICENSE).
19+
As a containerd sub-project, you will find the:
20+
21+
* [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
22+
* [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS),
23+
* and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
24+
25+
information in our [`containerd/project`](https://github.com/containerd/project) repository.

console_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323
)
2424

2525
func TestTempConsole(t *testing.T) {
26+
if err := os.Setenv("XDG_RUNTIME_DIR", ""); err != nil {
27+
t.Fatalf("failed to clear the XDG_RUNTIME_DIR env: %v", err)
28+
}
29+
2630
c, path := testSocketWithCorrectStickyBitMode(t, 0)
2731
ensureSocketCleanup(t, c, path)
2832
}

0 commit comments

Comments
 (0)