Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31af176

Browse files
Merge pull request #21 from estesp/add-project-repo-checks
Add project repo checks
2 parents 9f6ef3b + 2f23511 commit 31af176

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,29 @@ dist: trusty
22
sudo: required
33
language: go
44
go:
5-
- 1.9.x
5+
- 1.10.x
6+
- 1.11.x
7+
68
go_import_path: github.com/containerd/zfs
9+
710
install:
811
- sudo apt-add-repository -y ppa:zfs-native/stable && sudo apt-get update && sudo apt-get -y install linux-headers-$(uname -r) && sudo apt-get -y install ubuntu-zfs && sudo modprobe zfs
912
# until containerd v1.0.0 GA, we don't pin containerd version.
1013
- mkdir -p $GOPATH/src/github.com/containerd && cd $GOPATH/src/github.com/containerd && git clone https://github.com/containerd/containerd.git
1114
- mkdir -p $GOPATH/src/github.com/mistifyio && cd $GOPATH/src/github.com/mistifyio && git clone https://github.com/mistifyio/go-zfs.git && cd go-zfs && git checkout 386bffe89f421c8509066037225e1c0fda6b4933
1215
- cd $GOPATH/src/github.com/containerd/zfs
1316
- go get -t ./...
17+
- go get -u github.com/vbatts/git-validation
18+
- go get -u github.com/kunalkushwaha/ltag
19+
20+
before_script:
21+
- pushd ..; git clone https://github.com/containerd/project; popd
22+
1423
script:
24+
- DCO_VERBOSITY=-q ../project/script/validate/dco
25+
- ../project/script/validate/fileheader ../project/
1526
- go test -race -covermode=atomic -c .
1627
- sudo ./zfs.test -test.root -test.v -test.coverprofile=coverage.txt
28+
1729
after_success:
1830
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@ $ zfs create -o mountpoint=/var/lib/containerd/io.containerd.snapshotter.v1.zfs
3636
2. Start containerd.
3737

3838
3. e.g. `ctr pull --snapshotter=zfs ...`
39+
40+
## Project details
41+
42+
The zfs plugin is a containerd sub-project, licensed under the [Apache 2.0 license](./LICENSE).
43+
As a containerd sub-project, you will find the:
44+
* [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
45+
* [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS),
46+
* and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
47+
48+
information in our [`containerd/project`](https://github.com/containerd/project) repository.

zfs.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
// +build linux freebsd
22

3+
/*
4+
Copyright The containerd Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
319
package zfs
420

521
import (

zfs_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
// +build linux
22

3+
/*
4+
Copyright The containerd Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
319
package zfs
420

521
import (

0 commit comments

Comments
 (0)