From 258380d06aa8ac2b013cc5e6cdefd3db1b3e6d35 Mon Sep 17 00:00:00 2001 From: Dirk Lemmermann Date: Mon, 20 Dec 2021 11:54:40 +0100 Subject: [PATCH] Removed travis integration / build. --- .github/.travis.settings.xml | 9 ----- .github/deploy_bintray_central.sh | 15 -------- .github/deploy_prepare.sh | 47 ----------------------- .travis.yml | 64 ------------------------------- 4 files changed, 135 deletions(-) delete mode 100644 .github/.travis.settings.xml delete mode 100755 .github/deploy_bintray_central.sh delete mode 100755 .github/deploy_prepare.sh delete mode 100644 .travis.yml diff --git a/.github/.travis.settings.xml b/.github/.travis.settings.xml deleted file mode 100644 index 541775d4..00000000 --- a/.github/.travis.settings.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - bintray-${env.BINTRAY_SUBJECT}-${env.BINTRAY_REPO} - ${env.BINTRAY_USER} - ${env.BINTRAY_API_KEY} - - - \ No newline at end of file diff --git a/.github/deploy_bintray_central.sh b/.github/deploy_bintray_central.sh deleted file mode 100755 index 809c2c10..00000000 --- a/.github/deploy_bintray_central.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -echo "Copy settings.xml for deployment" -cp .github/.travis.settings.xml $HOME/.m2/settings.xml -echo "Deploy to Bintray" -mvn deploy -DskipTests -echo "Sync to Maven Central" -result=$(curl -X POST -u $BINTRAY_USER:$BINTRAY_API_KEY https://api.bintray.com/maven_central_sync/$BINTRAY_SUBJECT/$BINTRAY_REPO/$BINTRAY_PACKAGE/versions/$TRAVIS_TAG) -if [[ $result == *"Successfully synced and closed repo."* ]] -then - echo Successfully synced to Maven Central - exit 0 -else - echo Failed sync to Maven Central: $result - exit 1 -fi diff --git a/.github/deploy_prepare.sh b/.github/deploy_prepare.sh deleted file mode 100755 index 78dcd019..00000000 --- a/.github/deploy_prepare.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -echo "Prepare Deployment" - -# Script will zip the javadoc for upload to the release later, generate the changelog and increment the version in the pom.xml file to the one of the tag - -echo TRAVIS_TAG=$TRAVIS_TAG -echo TAG_BRANCH=$TAG_BRANCH - -rev=$(git rev-parse --short HEAD) - -echo "Install Dependencies for Changelog Generation" -gem install activesupport -v 5.2.3 -gem install github_changelog_generator -v 1.14.3 -echo "Finished Install Dependencies for Changelog Generation" - -git config user.name "Travis CI" -git config user.email "build@travis-ci.org" - -echo "Prepare Git for Commits" -git remote add upstream "https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git" -git fetch upstream -git checkout $TAG_BRANCH -echo "Finished Prepare Git for Commits" - -echo "Generate Changelog" -github_changelog_generator -t $GITHUB_TOKEN -git add -A CHANGELOG.md -git commit -m "update changelog at ${rev}" -echo "Finished Generate Changelog" - -echo "Increment Version" -mvn versions:set -DnewVersion=$TRAVIS_TAG -DoldVersion=* -DgroupId=* -DartifactId=* -# increment version of children modules -mvn versions:update-child-modules -git commit -am "increment version to ${TRAVIS_TAG}" -echo "Finished Increment Version" - -echo "Push commits" -git push upstream $TAG_BRANCH -echo "Finished Push commits" - -echo "Running mvn package" -mvn clean package -DskipTests -echo "Making zip of javadoc" -cd ${TRAVIS_BUILD_DIR}/preferencesfx/target/apidocs -zip -r ${TRAVIS_BUILD_DIR}/javadoc.zip . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e05791ad..00000000 --- a/.travis.yml +++ /dev/null @@ -1,64 +0,0 @@ -language: java - -sudo: false # Linux OS: run in container - -env: - global: - # get all the branches referencing this commit - - TAG_BRANCH=$(git ls-remote origin | sed -n "\|$TRAVIS_COMMIT\s\+refs/heads/|{s///p}") - - TERM=dumb - -# Necessary environment variables on Travis CI: -# -# GITHUB_TOKEN: Token from here: https://github.com/settings/tokens => with scope "public_repo" -# BINTRAY_USER: Bintray username -# BINTRAY_API_KEY: API key from here: https://bintray.com/profile/edit => API Key -# -# The Bintray URL follows the following pattern: https://bintray.com/subject/repo/package -# BINTRAY_SUBJECT=subject -# BINTRAY_REPO=repo -# BINTRAY_PACKAGE=package - -jdk: openjdk11 - -addons: - apt: - packages: - - p7zip-full - -install: true - -cache: - directories: - - $HOME/.m2 - -script: mvn package -q -U - -after_success: - - chmod +x .github/deploy_prepare.sh - - chmod +x .github/deploy_bintray_central.sh - -deploy: - - provider: script - script: .github/deploy_prepare.sh - skip_cleanup: true - on: &on - repo: $TRAVIS_REPO_SLUG - tags: true - all_branches: true - condition: $TAG_BRANCH =~ ^(master|master-11)$ - - provider: releases - api_key: - secure: "Xvdh4fmLoMvif8dFSkl2DeyqdKaVA6xpfsxwies8/rXJffTjDv8EUysuh3zwksFNHqlyKLDCRfSV8mlqKarfl5asI99sXSFyn5FKZNAd4WZJ68NPe89h0DteFPGYgqbSwwqzpuqTaY2KlsKh+PhtkcsDr61msEHYW1KXNxiSHbz4JVyR9UzuA1zdKs8okIym4/AMMEho0HXyzEwd1pLfBnd8uMCk8FgViM3Ffe5YSER9wL25RRw2n66hWwiuiDhPmQI2+WrR/7pVdjVOTkbRutO//PbTNVx+z00JMI0hqGfo3YgcduyG1g0ilJ4sv1fdqQ1fbFnGUtxosUEnomDxZiiTb0kU9zy70RndrNoStjWAlm98eH4YSt3KgHakccbjKAXnTOgmhm7W9XpomuHkaTW4L7cG/2cxRkbm86XdHwmRkWdRPO8ODqBDrrXrd7Up0yWx2f7F8woSBRf8NbqI3QNY3QMMpt1rRxQNX1XL1phjYLT7A81qy7vMjzErwYdFD9z7/vPnTeHT9/sNID1/JcDWi9yqK0tJOUz5ek1XGta1TJs/jCq8GDxBf+NnXDPjfbJ3d5LIrnxVZsWmMRk1zsIuKxxP14WmUJsHtbhKD3PGr2w8gPlecCKfJpQQiMmTyo+birXa7IGvhnrOa1Lgr+ZBa0CD2V03RFX/REYizwU=" - file_glob: true - file: - - javadoc.zip - - /**/target/*.jar - skip_cleanup: true - name: Release $TRAVIS_TAG - body: See [CHANGELOG.md](https://github.com/$TRAVIS_REPO_SLUG/blob/$TAG_BRANCH/CHANGELOG.md) - on: *on - - provider: script - script: .github/deploy_bintray_central.sh - skip_cleanup: true - on: *on