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

[Alexandra] Adds codecov + CircleCI status #46

Merged
merged 2 commits into from
Jun 2, 2020
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
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- ~/.gradle
key: v1-dependencies-{{ checksum "build.gradle" }}
- run: gradle test
- run: gradle jacocoTestReport
- run: bash <(curl -s https://codecov.io/bash)


deploy-staging:
docker:
- image: buildpack-deps:trusty
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ e este projeto segue o padrão de [Versionamento Semântico](https://semver.org/

## Unreleased

### Added
- Codecov + CircleCI status badge [#46](https://github.com/hackathon-da-diversidade/agencia-compromisso/pull/46)

## [1.0.0] - 2020-05-21

### Added
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

[![codecov](https://codecov.io/gh/hackathon-da-diversidade/agencia-compromisso/branch/master/graph/badge.svg)](https://codecov.io/gh/hackathon-da-diversidade/agencia-compromisso)
[![hackathon-da-diversidade](https://circleci.com/gh/hackathon-da-diversidade/agencia-compromisso.svg?style=shield)](https://circleci.com/gh/hackathon-da-diversidade/agencia-compromisso)


# Agência Compromisso

Em parceria com a Lojas Renner, o [CEA](http://www.ceavilapinto.org/) (Centro de Educação Ambiental da Vila Pinto) começou a desenvolver um projeto para encontrar modelos de prova para suas criações dentro do bairro Bom Jesus. Para quem não é familiar com este termo, modelo de prova é a pessoa que experimenta peças-piloto antes da produção em larga escala.
Expand Down Expand Up @@ -28,7 +32,7 @@ Após o evento, algumas pessoas seguiram trabalhando na iniciativa que tem como

Para rodar a aplicação você precisa:

* [JDK 13](https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html)
* [JDK 14](https://www.oracle.com/java/technologies/javase-jdk14-downloads.html)
* [Gradle](https://gradle.org/)

## Rodar aplicação
Expand Down
8 changes: 6 additions & 2 deletions bin/main/application.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#mongodb
# MongoDB
spring.data.mongodb.uri=${MONGODB_URI:mongodb://localhost:27017}
spring.data.mongodb.database=${MONGODB_DATABASE:agenciaCompromisso}

#logging
# Logging
logging.level.org.springframework.data=debug
logging.level.=error

# Settings
settings.cors.origins=http://localhost:3000,https://agencia-compromisso-stg.herokuapp.com,https://agencia-compromisso.herokuapp.com
settings.app.environment=${APP_ENV:local}

8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
id 'jacoco'
}

group = 'com.thoughtworks'
Expand Down Expand Up @@ -37,3 +38,10 @@ dependencies {
test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}