File tree 8 files changed +42
-10
lines changed
8 files changed +42
-10
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+
3
+ language : go
4
+
5
+ go :
6
+ - ' 1.13.x'
7
+
8
+ notifications :
9
+ email : false
10
+
11
+ branches :
12
+ only :
13
+ - master
14
+
15
+ cache :
16
+ directories :
17
+ - $HOME/gopath/pkg/mod # Cache the Go modules
18
+
19
+ before_script :
20
+ - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
21
+
22
+ jobs :
23
+ include :
24
+ - stage : test
25
+ script :
26
+ - make test
27
+ - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./build/bin/push-images; fi'
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ deps: # @HELP ensure that the required dependencies are in place
21
21
bash -c " diff -u <(echo -n) <(git diff go.sum)"
22
22
23
23
test : # @HELP run the unit tests and source code validation
24
- test : build license_check linters
24
+ test : build
25
25
go test github.com/atomix/cache-storage-controller/...
26
26
27
27
linters : # @HELP examines Go source code and reports coding problems
28
- GOGC=75 golangci-lint run
28
+ GOGC=50 golangci-lint run
29
29
30
30
license_check : # @HELP examine and ensure license headers exist
31
31
./build/licensing/boilerplate.py -v
32
32
33
- images : # @HELP build cache-storage Docker image
34
- images : build
33
+ image : # @HELP build cache-storage Docker image
34
+ image : build
35
35
docker build . -f build/cache-storage-controller/Dockerfile -t atomix/cache-storage-controller:${STORAGE_CONTROLLER_VERSION}
36
36
37
37
push : # @HELP push cache-storage Docker image
Original file line number Diff line number Diff line change 1
1
# cache-storage-controller
2
+ [ ![ Build Status] ( https://travis-ci.com/atomix/cache-storage-controller.svg?branch=master )] ( https://travis-ci.com/atomix/cache-storage-controller )
3
+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/atomix/cache-storage-controller )] ( https://goreportcard.com/report/github.com/atomix/cache-storage-controller )
4
+ [ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://github.com/gojp/goreportcard/blob/master/LICENSE )
5
+ [ ![ GoDoc] ( https://godoc.org/github.com/atomix/cache-storage-controller?status.svg )] ( https://godoc.org/github.com/atomix/cache-storage-controller )
6
+
2
7
Storage controller for cache storage in Atomix Cloud
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USER " --password-stdin
3
- make images
4
- docker push atomix/cache-storage-controller:latest
3
+ make image
4
+ make push
5
5
Original file line number Diff line number Diff line change 36
36
failureThreshold : 1
37
37
env :
38
38
- name : CONTROLLER_NAME
39
- value : " cache-controller "
39
+ value : {{ .Release.Name }}
40
40
- name : CONTROLLER_NAMESPACE
41
41
valueFrom :
42
42
fieldRef :
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- package test
15
+ package controller
16
16
17
17
import (
18
18
"context"
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- package test
15
+ package controller
16
16
17
17
const (
18
18
configVolume = "config"
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- package test
15
+ package controller
16
16
17
17
import (
18
18
"context"
You can’t perform that action at this time.
0 commit comments