Skip to content

Commit b39da4a

Browse files
authored
Merge pull request #6 from cernops/gomod
Use go modules, update git layout
2 parents f914d1e + d12a218 commit b39da4a

File tree

693 files changed

+933
-518280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

693 files changed

+933
-518280
lines changed

.github/workflows/coverage.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: coverage
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
jobs:
7+
test:
8+
name: Test with Coverage
9+
runs-on: ubuntu-latest
10+
env:
11+
GOVER: 1.13.3
12+
GOPROXY: https://proxy.golang.org
13+
steps:
14+
- name: Set up Go ${{ env.GOVER }}
15+
uses: actions/setup-go@v1
16+
with:
17+
go-version: ${{ env.GOVER }}
18+
- name: Check out code
19+
uses: actions/checkout@master
20+
- name: Run make test-coverage
21+
run: |
22+
make test-coverage
23+
- name: Send coverage
24+
env:
25+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
GO111MODULE=off go get github.com/mattn/goveralls
28+
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# Copyright The CERN.
3+
#
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
name: csi-cvmfsplugin
19+
20+
on:
21+
push:
22+
branches:
23+
- '*'
24+
tags:
25+
- 'v*'
26+
paths-ignore:
27+
- 'CONTRIBUTING.md'
28+
- 'README.md'
29+
- 'docs/**'
30+
jobs:
31+
build:
32+
name: Build binaries
33+
runs-on: ubuntu-latest
34+
env:
35+
GOVER: 1.13.3
36+
GOPROXY: https://proxy.golang.org
37+
steps:
38+
- name: Set up Go ${{ env.GOVER }}
39+
uses: actions/setup-go@v1
40+
with:
41+
go-version: ${{ env.GOVER }}
42+
- name: Install golangci-lint
43+
if: matrix.target_arch != 'arm'
44+
run: |
45+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${{ env.GOROOT }}/bin" v1.21.0
46+
- name: Check out code
47+
uses: actions/checkout@v1
48+
- name: Make test
49+
run: |
50+
make test
51+
- name: Make build for cross platform binaries
52+
run: |
53+
make build-cross
54+
- name: Make changelog
55+
if: startsWith(github.ref, 'refs/tags/v')
56+
run: |
57+
sudo apt-get update
58+
sudo apt-get install ruby
59+
make changelog
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
- name: Release cross platform binaries
63+
uses: softprops/action-gh-release@v1
64+
if: startsWith(github.ref, 'refs/tags/v')
65+
with:
66+
files: |
67+
_dist/**
68+
body_path: CHANGELOG.md
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
- name: Build docker images
72+
run: |
73+
make docker

.gitignore

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# build directory
2-
/output*/
3-
/_output*/
4-
/_output
5-
6-
# docker build
7-
/deploy/docker/csi-cvmfsplugin
1+
bin
2+
_dist
83

94
# Emacs save files
105
*~
@@ -21,4 +16,4 @@ Session.vim
2116
# git merge files
2217
*.orig
2318
*.patch
24-
*.rej
19+
*.rej

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Development
2+
3+
go get github.com/mitchellh/gox
4+
go get golang.org/x/tools/cmd/goimports

Gopkg.lock

Lines changed: 0 additions & 174 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 39 deletions
This file was deleted.

vendor/google.golang.org/grpc/LICENSE renamed to LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
23
Apache License
34
Version 2.0, January 2004
45
http://www.apache.org/licenses/
@@ -200,3 +201,4 @@
200201
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201202
See the License for the specific language governing permissions and
202203
limitations under the License.
204+

0 commit comments

Comments
 (0)