Advertisement
Guest User

config.yml

a guest
Nov 14th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.37 KB | None | 0 0
  1. version: 2 # use CircleCI 2.0
  2. jobs: # a collection of steps
  3.   build: # runs not using Workflows must have a `build` job as entry point
  4.    
  5.     working_directory: ~/circleci-demo-java-spring # directory where steps will run
  6.  
  7.     docker: # run the steps with Docker
  8.       - image: circleci/openjdk:8-jdk-browsers # ...with this image as the primary container; this is where all `steps` will run
  9.  
  10.     steps: # a collection of executable commands
  11.  
  12.       - checkout # check out source code to working directory
  13.  
  14.       - restore_cache: # restore the saved cache after the first run or if `pom.xml` has changed
  15.           key: circleci-demo-java-spring-{{ checksum "pom.xml" }}
  16.      
  17.       - run: mvn dependency:go-offline # gets the project dependencies
  18.      
  19.       - save_cache: # saves the project dependencies
  20.           paths:
  21.            - ~/.m2
  22.           key: circleci-demo-java-spring-{{ checksum "pom.xml" }}
  23.      
  24.       - run: mvn package # run the actual tests
  25.      
  26.       - store_test_results: # uploads the test metadata from the `target/surefire-reports` directory so that it can show up in the CircleCI dashboard.
  27.           path: target/surefire-reports
  28.      
  29.       - store_artifacts: # store the uberjar as an artifact
  30.           path: target/Bowling-1.0-SNAPSHOT.jar
  31.       # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement