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

circleci project setup #44

Merged
merged 2 commits into from
Apr 18, 2021
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
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2.1

orbs:
maven: circleci/maven@1.2.0
executors:
docker-build:
docker:
- image: circleci/openjdk:11-jdk
- image: circleci/postgres:latest
command:
- "--max_prepared_transactions=110"
#auth:
# username: user
# password: password
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: cargotracker
jobs:
build:
executor: docker-build
steps:
- checkout
- maven/with_cache:
steps:
- run:
name: Analyze on SonarCloud
command: |
mvn clean verify -Parq-payara-managed,coverage jacoco:report \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.organization=hantsy \
-Dsonar.projectKey=hantsy_cargotracker \
-Dsonar.coverage.exclusions=**/dto/*
- maven/process_test_results
workflows:
main:
jobs:
- build
# context: SonarCloud
# filters:
# branches:
# only: master
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hantsy_cargotracker&metric=alert_status)](https://sonarcloud.io/dashboard?id=hantsy_cargotracker)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hantsy_cargotracker&metric=coverage)](https://sonarcloud.io/dashboard?id=hantsy_cargotracker)

[![CircleCI](https://circleci.com/gh/hantsy/cargotracker.svg?style=svg)](https://circleci.com/gh/hantsy/cargotracker)

![Integration Test with Arquillian WildFly Managed Container](https://github.com/hantsy/cargotracker/workflows/it-with-arq-wildfly-managed/badge.svg)
![Integration Test with Arquillian WildFly Embedded Container](https://github.com/hantsy/cargotracker/workflows/it-with-arq-wildfly-embedded/badge.svg)

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@
<goal>report</goal>
</goals>
</execution>
<execution>
<!-- <execution>
<id>default-check</id>
<goals>
<goal>check</goal>
Expand All @@ -980,7 +980,7 @@
</rule>
</rules>
</configuration>
</execution>
</execution>-->
</executions>
</plugin>
</plugins>
Expand Down