from 1
[chemc-fabric.git] / .circleci / config.yml
blob87d32fbc349acb826b8448c8217a0d30278d9020
1 # Java Gradle CircleCI 2.0 configuration file
3 # Check https://circleci.com/docs/2.0/language-java/ for more details
5 version: 2
6 jobs:
7   build:
8     docker:
9       # specify the version you desire here
10       - image: openjdk:16-jdk
12       # Specify service dependencies here if necessary
13       # CircleCI maintains a library of pre-built images
14       # documented at https://circleci.com/docs/2.0/circleci-images/
15       # - image: circleci/postgres:9.4
17     working_directory: ~/repo
19     environment:
20       # Customize the JVM maximum heap limit
21       JVM_OPTS: -Xmx3200m
22       TERM: dumb
24     steps:
25       - checkout
27       # Download and cache dependencies
28       - restore_cache:
29           keys:
30             - v1-dependencies-{{ checksum "build.gradle" }}
31             # fallback to using the latest cache if no exact match is found
32             - v1-dependencies-
34       - run: ./gradlew jar
35       - store_artifacts:
36           path: build/libs/chemc-3.1.0-pre-dev.jar
37           destination: chemc-3.0.91.jar
39       - save_cache:
40           paths:
41             - ~/.gradle
42           key: v1-dependencies-{{ checksum "build.gradle" }}
44       # run tests!
45       - run: ./gradlew test