This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
circle.yml
46 lines (45 loc) · 1.45 KB
/
circle.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Configuration for CircleCI
# https://circleci.com/gh/qos-ch/logback-extensions
version: 2.0
jobs:
build:
branches:
ignore: gh-pages
working_directory: ~/code
docker:
- image: circleci/openjdk:8-jdk-browsers
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "loggly/build.gradle" }}-{{ checksum "spring/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "loggly/build.gradle" }}-{{ checksum "spring/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew check assemble --parallel
- store_artifacts:
path: loggly/build/reports
destination: reports
- store_artifacts:
path: spring/build/reports
destination: reports
- store_artifacts:
path: loggly/build/outputs
destination: outputs
- store_artifacts:
path: spring/build/outputs
destination: outputs
- store_test_results:
path: loggly/build/test-results
- store_test_results:
path: spring/build/test-results
- run:
name: Deploy snapshot
command: scripts/deploysnapshot.sh