CircleCI에서 SpringBoot 테스트를 자동화해 봅니다.
                                            
                                                
                                                
                                                
                                                
                                                
                                                 4010 단어  CircleCIspring-boot
                    
CircleCI 측 설정
CircleCI 에 github에 등록
Operating System: Linux, Language: Gradle(Java) 선택
제공된 yml 파일 복사

SpringBoot .circleci/config.yml 설정
복사한 yml 파일을
.circleci/config.yml에 배치내 프로젝트는
build.gradle.kts를 사용하기 때문에 거기서만 수정circleci/config.yml
# Java Gradle CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/openjdk:8-jdk
      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/postgres:9.4
    working_directory: ~/repo
    environment:
      # Customize the JVM maximum heap limit
      JVM_OPTS: -Xmx3200m
      TERM: dumb
    steps:
      - checkout
      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "build.gradle.kts" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-
      - run: gradle dependencies
      - save_cache:
          paths:
            - ~/.gradle
          key: v1-dependencies-{{ checksum "build.gradle.kts" }}
      # run tests!
      - run: gradle test
배치 후 git push
시작
circleci 화면으로 돌아가서
Start building를 클릭하면 시작할 수 있습니다.테스트 완료시 SUCCESS가 표시됩니다.

git과의 협력
git push 되었을 때 circleci가 자동으로 기동하게 된다.
                Reference
이 문제에 관하여(CircleCI에서 SpringBoot 테스트를 자동화해 봅니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yamii/items/db14f8ad492ff9504b28텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)