From 77b7ff1ef7c1520384df4918a567c8c19db486ed Mon Sep 17 00:00:00 2001 From: Gareth Clay Date: Mon, 19 Apr 2021 17:58:38 +0100 Subject: [PATCH] Remove Circle CI --- .circleci/config.yml | 1 - README.adoc | 3 -- ci/README.md | 14 --------- ci/config.yml | 61 ------------------------------------- scripts/run-local-ci-job.sh | 26 ---------------- 5 files changed, 105 deletions(-) delete mode 120000 .circleci/config.yml delete mode 100644 ci/config.yml delete mode 100755 scripts/run-local-ci-job.sh diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 120000 index ec04fc7..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1 +0,0 @@ -../ci/config.yml \ No newline at end of file diff --git a/README.adoc b/README.adoc index 368e494..f9f3983 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,3 @@ -image:https://circleci.com/gh/spring-cloud/spring-cloud-app-broker.svg?style=svg["CircleCI", link="https://circleci.com/gh/spring-cloud/spring-cloud-app-broker"] -image:https://api.codacy.com/project/badge/Grade/72dc83489cb84106bcca9d0d20430622["Codacy code quality", link="https://www.codacy.com/app/scottfrederick/spring-cloud-app-broker?utm_source=github.com&utm_medium=referral&utm_content=spring-cloud/spring-cloud-app-broker&utm_campaign=Badge_Grade"] -image:https://codecov.io/gh/spring-cloud/spring-cloud-app-broker/branch/master/graph/badge.svg["Codecov", link="https://codecov.io/gh/spring-cloud/spring-cloud-app-broker/branch/master"] image:https://img.shields.io/gitter/room/spring-cloud-app-broker/community.svg?style=flat-square["Gitter", link="https://gitter.im/spring-cloud-app-broker/community"] == Spring Cloud App Broker diff --git a/ci/README.md b/ci/README.md index 16ca06a..93879f4 100644 --- a/ci/README.md +++ b/ci/README.md @@ -1,19 +1,5 @@ #App Broker CI Pipeline -## Running CI pipeline locally -CircleCI allows pipelines to be run locally, this is very useful development purposes - -- Install circle command line tool to run local builds: -```$bash -curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && \ -chmod +x /usr/local/bin/circleci -``` - -- Run script to execute pipeline -```$bash -ci/scripts/run-local-ci-job.sh -``` - ## Running the acceptance tests on Cloud Foundry locally With the following variables set: diff --git a/ci/config.yml b/ci/config.yml deleted file mode 100644 index 9c82413..0000000 --- a/ci/config.yml +++ /dev/null @@ -1,61 +0,0 @@ -# Java Gradle CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# -version: 2 -jobs: - build: - docker: - - image: circleci/openjdk:8-jdk - - working_directory: ~/repo - - environment: - # Configure the JVM and Gradle to avoid OOM errors - _JAVA_OPTIONS: "-Xmx3g" - GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2" - TERM: dumb - - steps: - - checkout - - - restore_cache: - key: sc-app-broker-{{ .Branch }} - - - run: - name: "Download dependencies" - command: ./gradlew assemble - - - save_cache: - paths: - - ~/.gradle - key: sc-app-broker-{{ .Branch }} - - - run: - name: "Run unit tests" - command: ./gradlew clean check codeCoverageReport --stacktrace - - - run: - name: "Aggregate test results" - when: always - command: | - mkdir -p ~/junit/ - find . -type f -regex ".*/build/test-results/.*" -exec cp {} ~/junit/ \; - - - run: - name: "Upload tests coverage" - command: bash <(curl -s https://codecov.io/bash) - - - store_artifacts: - path: ~/junit/ - destination: artifacts - - - store_test_results: - path: ~/junit/ - destination: testartifacts - -workflows: - version: 2 - commit: - jobs: - - build diff --git a/scripts/run-local-ci-job.sh b/scripts/run-local-ci-job.sh deleted file mode 100755 index 59c81c4..0000000 --- a/scripts/run-local-ci-job.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -readonly PROG_DIR=$(readlink -m $(dirname $0)) -readonly CI_DIR=$(dirname "${PROG_DIR}") -readonly PROJECT_ROOT=$(dirname "${CI_DIR}") - -validate(){ - [[ $(type circleci) ]] || (echo "circleci tool not installed" >&2 ; circle_usage ; exit 2) -} - -circle_usage() { - cat <<- EOF -Install circle command line tool to run local builds: - "curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && \ - chmod +x /usr/local/bin/circleci" -EOF -} - -run_circle_command(){ - cd "${PROJECT_ROOT}" - circleci build -} - -validate -run_circle_command \ No newline at end of file