Add Codecov support
This commit is contained in:
parent
753a872fe8
commit
a6b003ccd3
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -27,3 +27,7 @@ coverage.out
|
|||
.idea/
|
||||
*.iml
|
||||
.DS_Store
|
||||
|
||||
# Do not commit codeship key
|
||||
codeship.aes
|
||||
codeship.env
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.9
|
||||
WORKDIR /go/src/fluux.io/xmpp
|
||||
COPY . ./
|
||||
RUN go get github.com/processone/mpg123 github.com/processone/soundcloud
|
||||
RUN go get -t -v ./...
|
|
@ -2,3 +2,4 @@ build:
|
|||
build:
|
||||
image: fluux/build
|
||||
dockerfile: Dockerfile
|
||||
encrypted_env_file: codeship.env.encrypted
|
||||
|
|
|
@ -2,4 +2,7 @@
|
|||
steps:
|
||||
- name: test
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue