Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Merge pull request #9 from Financial-Times/AddCoverallsNeo3.1
Browse files Browse the repository at this point in the history
Add coveralls neo3.1
  • Loading branch information
JuliaFernee committed Feb 8, 2017
2 parents 12d9e55 + fd91f43 commit 34242fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
@@ -1,6 +1,5 @@
# AlphavilleSeries Reader/Writer for Neo4j (alphaville-series-rw-neo4j)
[![Circle CI](https://circleci.com/gh/Financial-Times/alphaville-series-rw-neo4j/tree/master.png?style=shield)](https://circleci.com/gh/Financial-Times/alphaville-series-rw-neo4j/tree/master)

[![Circle CI](https://circleci.com/gh/Financial-Times/alphaville-series-rw-neo4j.svg?style=shield)](https://circleci.com/gh/Financial-Times/alphaville-series-rw-neo4j)[![Go Report Card](https://goreportcard.com/badge/github.com/Financial-Times/alphaville-series-rw-neo4j)](https://goreportcard.com/report/github.com/Financial-Times/alphaville-series-rw-neo4j) [![Coverage Status](https://coveralls.io/repos/github/Financial-Times/alphaville-series-rw-neo4j/badge.svg)](https://coveralls.io/github/Financial-Times/alphaville-series-rw-neo4j)
__An API for reading/writing alphaville-series into Neo4j. Expects the alphaville-series json supplied to be in the format that comes out of the alphaville-series transformer.__

## Installation
Expand Down Expand Up @@ -77,4 +76,4 @@ instead of `localhost:8080/alphaville-series/`.

This is because you are not likely to have Vulkan to resolve hosts ports and paths in your local environment.
#### Running in your local environment
alphaville-series-rw-neo4j --port=XXXX
alphaville-series-rw-neo4j --port=XXXX
23 changes: 19 additions & 4 deletions circle.yml
@@ -1,9 +1,24 @@
machine:
services:
- neo4j
- docker
environment:
NEO4J_TEST_URL: http://neo4j:x@localhost:7474/db/data/

NEO4J_TEST_URL: http://localhost:7474/db/data/
dependencies:
pre:
- go get github.com/axw/gocov/gocov; go get github.com/matm/gocov-html; go get -u github.com/jstemmer/go-junit-report
test:
pre:
- 'curl -u neo4j:neo4j -H "Content-Type: application/json" -X POST -d ''{"password":"x"}'' http://localhost:7474/user/neo4j/password'
- docker info; docker run -d -e "NEO4J_AUTH=none" -e "NEO4J_HEAP_MEMORY=256" -e "NEO4J_CACHE_MEMORY=256M" -p 7474:7474 -p 7473:7473 neo4j:$NEO4J_VERSION
- wget --retry-connrefused --no-check-certificate -T 60 $NEO4J_TEST_URL; curl $NEO4J_TEST_URL
- go get github.com/mattn/goveralls
override:
- mkdir -p $CIRCLE_TEST_REPORTS/golang
- go test -race -v ./...
- go test -race -v ./... | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml
- go list ./... | awk -F/ '{print $4}' | xargs -I {} go test -v -cover -race -coverprofile=$CIRCLE_ARTIFACTS/{}.out ./{}
- cd $CIRCLE_ARTIFACTS && sed -i '1d' *.out
- |
echo "mode: atomic" > $CIRCLE_ARTIFACTS/overall-coverage.result
- cd $CIRCLE_ARTIFACTS && cat *.out >> overall-coverage.result
post:
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/overall-coverage.result -service=circle-ci -repotoken=$COVERALLS_TOKEN

0 comments on commit 34242fe

Please sign in to comment.