Skip to content

Commit

Permalink
Add travis.yaml (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Mar 13, 2018
1 parent 9f14db3 commit 7d300d8
Show file tree
Hide file tree
Showing 195 changed files with 43,470 additions and 667 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: go
go:
- 1.x
- tip

install: true

script:
- go build ./...
- ./hack/coverage.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[![Build Status](https://travis-ci.org/appscode/stash.svg?branch=master)](https://travis-ci.org/appscode/stash)
[![codecov](https://codecov.io/gh/appscode/stash/branch/master/graph/badge.svg)](https://codecov.io/gh/appscode/stash)
[![Go Report Card](https://goreportcard.com/badge/github.com/appscode/stash)](https://goreportcard.com/report/github.com/appscode/stash)
![Docker Pulls](https://img.shields.io/docker/pulls/appscode/stash.svg)

# Stash
Stash by AppsCode is a Kubernetes operator for [restic](https://restic.net). If you are running production workloads in Kubernetes, you might want to take backup of your disks. Traditional tools are too complex to setup and maintain in a dynamic compute environment like Kubernetes. `restic` is a backup program that is fast, efficient and secure with few moving parts. Stash is a CRD controller for Kubernetes built around `restic` to address these issues. Using Stash, you can backup Kubernetes volumes mounted in following types of workloads:
Expand Down
2 changes: 1 addition & 1 deletion glide-slow
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
pushd $GOPATH/src/github.com/appscode/stash

glide up -v
glide vc --only-code --no-tests
glide vc --use-lock-file --only-code --no-tests

popd
55 changes: 40 additions & 15 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 12 additions & 18 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,42 @@ import:
- package: github.com/codeskyblue/go-sh
version: master
- package: github.com/golang/glog
- package: github.com/google/go-cmp
- package: github.com/hashicorp/go-version
repo: https://github.com/appscode/go-version.git
vcs: git
version: master
- package: github.com/heroku/docker-registry-client
version: master
- package: github.com/jpillora/go-ogle-analytics
- package: github.com/onsi/ginkgo
version: v1.4.0
- package: github.com/onsi/gomega
version: v1.2.0
version: v1.3.0
- package: github.com/pkg/errors
version: v0.8.0
- package: github.com/prometheus/client_golang
version: v0.8.0
- package: github.com/spf13/afero
version: v1.0.2
- package: github.com/spf13/cobra
version: master
- package: github.com/spf13/pflag
repo: https://github.com/appscode/pflag.git
vcs: git
version: master
- package: gopkg.in/ini.v1
version: v1.28.2
version: v1.33.0
- package: gopkg.in/robfig/cron.v2
repo: https://github.com/appscode/cron.git
vcs: git
version: v2
- package: k8s.io/api
version: kubernetes-1.9.0
- package: k8s.io/apiserver
- package: k8s.io/apiextensions-apiserver
version: kubernetes-1.9.0
- package: k8s.io/apimachinery
version: kubernetes-1.9.0
- package: k8s.io/apiserver
version: kubernetes-1.9.0
- package: k8s.io/client-go
version: v6.0.0
- package: k8s.io/apiextensions-apiserver
version: kubernetes-1.9.0
- package: k8s.io/kubernetes
version: v1.9.0
- package: github.com/prometheus/client_golang
version: v0.8.0
- package: github.com/prometheus/common
version: 3233b24a36715a2fe36d162260457857a56d672d
- package: github.com/sirupsen/logrus
version: v1.0.3
- package: github.com/docker/distribution
version: edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c
- package: github.com/onsi/ginkgo
version: v1.4.0
19 changes: 19 additions & 0 deletions hack/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -eou pipefail

GOPATH=$(go env GOPATH)
REPO_ROOT="$GOPATH/src/github.com/appscode/stash"

pushd $REPO_ROOT

echo "" > coverage.txt

for d in $(go list ./... | grep -v -e vendor -e test); do
go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done

popd
20 changes: 20 additions & 0 deletions vendor/cloud.google.com/go/cloud.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions vendor/github.com/appscode/go/flags/flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/appscode/kutil/admission/api/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d300d8

Please sign in to comment.