Skip to content

Commit

Permalink
Minor test changes (#2)
Browse files Browse the repository at this point in the history
* Adding codecov
* Adding quay.io image badge
  • Loading branch information
hatemosphere authored Apr 25, 2019
1 parent fcdc8d6 commit 83b4b76
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 20 deletions.
7 changes: 5 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.git
.gitignore
.golangci
Docs
.golangci.yml
.goreleaser.yml
.travis.yml
coverage.txt
docs
CONTRIBUTING.md
LICENSE
MAINTAINERS.md
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/
vendor/
coverage.txt
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc


28 changes: 15 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ language: go
addons:
apt:
packages:
# needed for the nfpm pipe:
- rpm
# needed for the snap pipe:
- snapd
# needed for the nfpm pipe:
- rpm
# needed for the snap pipe:
- snapd

branches:
only:
Expand All @@ -26,9 +26,8 @@ notifications:

env:
# needed for the snap pipe:
- PATH=/snap/bin:$PATH
# enforcing go mod in GOPATH
- GO111MODULE=on
- PATH=/snap/bin:$PATH GO111MODULE=on

services:
- docker
Expand All @@ -41,13 +40,16 @@ before_script:

script:
- golangci-lint run # run a bunch of code checkers/linters in parallel
- go test -v -race ./... # run all the tests with the race detector enabled
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... # run all the tests with the race detector enabled

after_success:
- bash <(curl -s https://codecov.io/bash)

# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
2 changes: 1 addition & 1 deletion Docs/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: pdb-controller
image: dreamteam-gg/pdb-controller:latest
image: quay.io/dreamteam/pdb-controller:latest
resources:
limits:
cpu: 200m
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.com/dreamteam-gg/pdb-controller.svg?branch=master)](https://travis-ci.com/dreamteam-gg/pdb-controller)
[![Docker Repository on Quay](https://quay.io/repository/dreamteam/pdb-controller/status "Docker Repository on Quay")](https://quay.io/repository/dreamteam/pdb-controller)

# Pod Disruption Budget Controller

Hard fork of https://github.com/mikkeloscar/pdb-controller
Expand Down Expand Up @@ -66,12 +69,12 @@ $ golangci-lint run
## Setup

The `pdb-controller` can be run as a deployment in the cluster or locally. See
[deployment.yaml](/Docs/deployment.yaml) for an in-cluster example.
[deployment.yaml](/docs/deployment.yaml) for an in-cluster example.

Deploy it to cluster by running:

```bash
$ kubectl apply -f Docs/deployment.yaml
$ kubectl apply -f docs/deployment.yaml
```

Or run locally for debug purposes:
Expand Down

0 comments on commit 83b4b76

Please sign in to comment.