From 53682459a0bfea44c81bf5f5ba5aefcb76eb6275 Mon Sep 17 00:00:00 2001 From: Marco Collovati Date: Thu, 4 Jan 2024 10:31:30 +0100 Subject: [PATCH] chore: cleanup Removed circleci configurations and obsolete GH action workflow --- .circleci/.circleci.settings.xml | 29 ---- .circleci/config.yml.old | 227 ------------------------------- .github/workflows/publish.yml | 28 ---- 3 files changed, 284 deletions(-) delete mode 100644 .circleci/.circleci.settings.xml delete mode 100644 .circleci/config.yml.old delete mode 100644 .github/workflows/publish.yml diff --git a/.circleci/.circleci.settings.xml b/.circleci/.circleci.settings.xml deleted file mode 100644 index 17116aa4..00000000 --- a/.circleci/.circleci.settings.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - bintray-mcollovati-maven-repo - mcollovati - ${env.BINTRAY_TOKEN} - - - bintray-oss-snapshots - mcollovati - ${env.BINTRAY_TOKEN} - - - jfrog-vertx-vaadin-releases - ${env.JFROG_USER} - ${env.JFROG_TOKEN} - - - jfrog-vertx-vaadin-snapshots - ${env.JFROG_USER} - ${env.JFROG_TOKEN} - - - gpg.passphrase - ${env.MAVEN_GPG_PASSPHRASE} - - - diff --git a/.circleci/config.yml.old b/.circleci/config.yml.old deleted file mode 100644 index 8dc712f2..00000000 --- a/.circleci/config.yml.old +++ /dev/null @@ -1,227 +0,0 @@ -# Java Maven CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# -version: 2.1 -commands: - configure-gpg: - steps: - - run: - name: Configure GPG private key for signing project artifacts in OSS Sonatype - command: | - echo $MAVEN_GPG_PRIVATE_KEY | sed 's/\\n/\n/g' | gpg --batch --no-tty --import --yes -jobs: - build: - machine: - image: ubuntu-2204:current - #docker: - # - image: cimg/openjdk:11.0 - - working_directory: ~/repo - - environment: - # Customize the JVM maximum heap limit - MAVEN_OPTS: -Xmx3200m - MAVEN_CONFIG: "-s .circleci/.circleci.settings.xml -ntp -B" - - steps: - - checkout - - run: - name: enable ipv6 - command: | - sudo mkdir --parents /etc/docker - cat \<> $BASH_ENV - echo "export MAVEN_CONFIG='-B -ntp -s $(pwd)/.circleci/.circleci.settings.xml'" >> $BASH_ENV - echo "export CHROME_VERSION=$(google-chrome --version | sed 's/^Google Chrome //' | cut -d. -f1)" >> $BASH_ENV - echo "export FIREFOX_VERSION=$(firefox --version | sed 's/Mozilla Firefox //' | cut -d. -f1)" >> $BASH_ENV - - - run: - name: "Install artifacts" - command: ./mvnw -N install && ./mvnw -Pcircleci -Prelease-flow,flow-ui-tests install -DskipTests -DskipVertxRun=true - - run: - name: "UI tests" - command: | - ./mvnw -Pcircleci -Dvaadin.proKey=${VAADIN_PROKEY} -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver \ - -Duitest.chrome-version=${CHROME_VERSION} -Duitest.firefox-version=${FIREFOX_VERSION} \ - -Dtest.vertx.jvmArgs="-Dorg.slf4j.simpleLogger.logFile=/tmp/verticle.log -Dvaadin.require.home.node=true -Xmx2048M -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory" \ - -Pflow-ui-tests verify - - save_cache: - paths: - - ~/.m2 - key: ui-tests-dependencies-{{ checksum "pom.xml" }} - when: always - - run: - name: Save test results - command: | - mkdir -p ~/junit-uitests/ - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit-uitests/ \; - find . -type f -regex ".*/target/failsafe-reports/.*xml" -exec cp {} ~/junit-uitests/ \; - find . -type f -regex ".*/target/surefire-reports/.*txt" -exec cp {} ~/junit-uitests/ \; - find . -type f -regex ".*/target/failsafe-reports/.*txt" -exec cp {} ~/junit-uitests/ \; - for i in `find . -type d -name error-screenshots`; do n=$(basename $(dirname $i)); mkdir --parents ~/junit-uitests/$n; cp -r $i/* ~/junit-uitests/$n/; done - cp /tmp/verticle.log ~/junit-uitests/ - when: always - - store_test_results: - path: ~/junit-uitests - - store_artifacts: - path: ~/junit-uitests - - store_artifacts: - path: ~/.npm/_logs/ - destination: npm-logs - - -workflows: - version: 2 - build-only: - jobs: - - build: - filters: - branches: - ignore: /^.*ui_tests.*/ - ui-tests: - triggers: - - schedule: - cron: "0 0 * * 3" - filters: - branches: - only: - - master - - development - - vaadin-14.2 - jobs: - - ui-tests - build-deploy: - jobs: - - build: - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ - - deploy-vaadin8: - requires: - - build - filters: - tags: - only: /^v8-.*/ - branches: - ignore: /.*/ - - deploy-vaadin-flow: - requires: - - build - filters: - tags: - only: /^flow-.*/ - branches: - ignore: /.*/ - diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 2f8d3e76..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Publish to Maven Central - -on: - release: - types: [ published ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Java - uses: actions/setup-java@v1 - with: # running setup-java again overwrites the settings.xml - java-version: 11 - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml - server-username: MAVEN_CENTRAL_USERNAME # env variable for username in deploy - server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - - name: Publish to Maven Central - run: | - ./mvnw -N -ntp install - ./mvnw -ntp -Prelease,release-flow,release-ossrh -pl :vaadin-flow-sockjs,:vertx-vaadin-flow,:vertx-vaadin-flow-jandex,:vertx-vaadin-quarkus-extension-parent,:vertx-vaadin-quarkus-extension,:vertx-vaadin-quarkus-extension-deployment -Dvertx-vaadin.release.gpg -DskipTests clean deploy - env: - MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} - MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}