-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
51 lines (50 loc) · 1.29 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
47
48
49
50
51
version: 2
jobs:
build:
working_directory: ~/id3-charset-converter
docker:
- image: circleci/openjdk:8-jdk
environment:
TERM: dumb
steps:
- checkout
- restore_cache:
key: id3-charset-converter-{{ checksum "build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew dependencies
- run:
name: Run Tests
command: ./gradlew check
- save_cache:
paths:
- ~/.gradle
key: id3-charset-converter-{{ checksum "build.gradle" }}
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- run:
name: Build Artifacts
command: ./gradlew assemble
- store_artifacts:
path: ./build/distributions
workflows:
version: 2
commit-workflow:
jobs:
- build
scheduled-workflow:
triggers:
- schedule:
cron: "10 5 * * 5"
filters:
branches:
only:
- master
jobs:
- build