From cd360bff0cd0853e7d824952f6212c3ef54be65b Mon Sep 17 00:00:00 2001 From: astenstrasser Date: Thu, 21 May 2020 16:31:58 -0300 Subject: [PATCH 1/2] [Alexandra] Adds codecov --- .circleci/config.yml | 4 ++++ README.md | 3 +++ build.gradle | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 026e391..02cd7ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/README.md b/README.md index 85201d5..eb81173 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ +[![codecov](https://codecov.io/gh/hackathon-da-diversidade/agencia-compromisso/branch/master/graph/badge.svg)](https://codecov.io/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. diff --git a/build.gradle b/build.gradle index 589f381..6ed1225 100644 --- a/build.gradle +++ b/build.gradle @@ -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' @@ -37,3 +38,10 @@ dependencies { test { useJUnitPlatform() } + +jacocoTestReport { + reports { + xml.enabled true + html.enabled false + } +} From 2bf65d94e2c43dd467a24867a835df50d38b81ed Mon Sep 17 00:00:00 2001 From: astenstrasser Date: Thu, 21 May 2020 16:43:54 -0300 Subject: [PATCH 2/2] Updated Changelog --- CHANGELOG.md | 3 +++ README.md | 3 ++- bin/main/application.properties | 8 ++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef7d88..0857d68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index eb81173..13bdc32 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![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 @@ -31,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 diff --git a/bin/main/application.properties b/bin/main/application.properties index e6c4cd3..2964876 100644 --- a/bin/main/application.properties +++ b/bin/main/application.properties @@ -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} +