Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage report #68

Merged
merged 1 commit into from
Nov 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
- checkout
- run: make deps
- run: make test
- run: bash <(curl -s https://codecov.io/bash)
- run: cd browser/flagr-ui && yarn install && yarn run test
9 changes: 6 additions & 3 deletions Dockerfile-CI
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM golang:1.9-alpine
FROM golang:stretch

RUN apk --update add curl git nodejs nodejs-npm bash build-base perl fontconfig openssh tar gzip ca-certificates sqlite
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn sqlite3

RUN npm install -g yarn@latest
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs build-essential
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<p align="center">
<img src="./browser/flagr-ui/src/assets/logo.png" width="150">
</p>

[![Go Report Card](https://goreportcard.com/badge/github.com/checkr/flagr)](https://goreportcard.com/report/github.com/checkr/flagr)
[![](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/checkr-flagr/Lobby)

# Flagr Quickstart Guide

Expand Down
2 changes: 1 addition & 1 deletion buildscripts/go-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor | grep -v swagger_gen); do
gt -coverprofile=profile.out -covermode=atomic $d
gt -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
Expand Down