Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.15 KB | None | 0 0
  1. # Java Gradle CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-java/ for more details
  4. #
  5. version: 2  # version of circle ci
  6. jobs:
  7.   build:
  8.     docker:
  9.      # specify the version you desire here as your application is dockerised!
  10.       - image: circleci/openjdk:8-jdk
  11.  
  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
  16.  
  17.     working_directory: ~/repo
  18.  
  19.     environment:
  20.      # Customize the JVM maximum heap limit
  21.       JVM_OPTS: -Xmx3200m
  22.       TERM: dumb
  23.  
  24.     steps:
  25.      - checkout
  26.  
  27.  
  28.       # Download and cache dependencies
  29.       - restore_cache:
  30.           keys:
  31.          - v1-dependencies-{{ checksum "build.gradle" }}
  32.           # fallback to using the latest cache if no exact match is found
  33.           - v1-dependencies-
  34.  
  35.       - run: gradle dependencies
  36.  
  37.       - save_cache:
  38.           paths:
  39.            - ~/.gradle
  40.           key: v1-dependencies-{{ checksum "build.gradle" }}
  41.  
  42. #      # run tests!
  43. #      - run: gradle test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement