Skip to content

Commit

Permalink
overhauled pom which uses new parent pom, enable cci 2.0 build + sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
floragunn committed Oct 25, 2017
1 parent eb7371c commit 3725aa8
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 522 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
jobs:
build:
working_directory: ~/circleci-sg
resource_class: large
docker:
- image: circleci/openjdk:8-jdk-browsers
steps:
- run:
name: Versions
command: 'uname -a;java -version;openssl version'
- checkout
- restore_cache:
key: circleci-sg-{{ checksum "pom.xml" }}
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: circleci-sg-{{ checksum "pom.xml" }}
- run: mvn -Pcoverage verify
- run: mvn -Pcoverage sonar:sonar -Dsonar.organization=floragunncom-github -Dsonar.login=$SONAR_LOGIN -Dsonar.host.url=https://sonarcloud.io
- store_test_results:
path: target/surefire-reports
- deploy:
name: Maybe Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
mvn deploy -DskipTests -s settings.xml
fi
#logging
Loading

0 comments on commit 3725aa8

Please sign in to comment.