-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.yml
31 lines (30 loc) · 946 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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