-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overhauled pom which uses new parent pom, enable cci 2.0 build + sonar
- Loading branch information
floragunn
committed
Oct 25, 2017
1 parent
eb7371c
commit 3725aa8
Showing
2 changed files
with
212 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.