Add Codecov support

This commit is contained in:
Mickael Remond 2018-01-01 18:57:56 +01:00
parent 753a872fe8
commit a6b003ccd3
No known key found for this signature in database
GPG key ID: E6F6045D79965AA3
4 changed files with 10 additions and 2 deletions

4
.gitignore vendored
View file

@ -27,3 +27,7 @@ coverage.out
.idea/ .idea/
*.iml *.iml
.DS_Store .DS_Store
# Do not commit codeship key
codeship.aes
codeship.env

View file

@ -1,4 +1,4 @@
FROM golang:1.9 FROM golang:1.9
WORKDIR /go/src/fluux.io/xmpp WORKDIR /go/src/fluux.io/xmpp
COPY . ./ COPY . ./
RUN go get github.com/processone/mpg123 github.com/processone/soundcloud RUN go get -t -v ./...

View file

@ -2,3 +2,4 @@ build:
build: build:
image: fluux/build image: fluux/build
dockerfile: Dockerfile dockerfile: Dockerfile
encrypted_env_file: codeship.env.encrypted

View file

@ -2,4 +2,7 @@
steps: steps:
- name: test - name: test
service: build service: build
command: go test -v ./... command: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: codecov
service: build
command: bash -c "curl -s https://codecov.io/bash"