Skip to content

Commit

Permalink
[@yorevs] Removing badges.gradle and static badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed Sep 20, 2023
1 parent 9655238 commit 0925898
Show file tree
Hide file tree
Showing 31 changed files with 8 additions and 428 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: build-and-test
run-name: HSPyLib build-and-test [@${{ github.actor }}]
name: build
run-name: HSPyLib build [@${{ github.actor }}]

on:
workflow_dispatch:
Expand All @@ -25,7 +25,7 @@ permissions:

jobs:

build-and-test:
build:

strategy:
matrix:
Expand Down Expand Up @@ -53,8 +53,8 @@ jobs:
git config --global user.name "$(git log -n 1 --pretty=format:%an)"
git config --global user.email "$(git log -n 1 --pretty=format:%ae)"
if [[ -z $(git status --porcelain) ]]; then
echo 'Build/Check badges are the same, skipping commit.'
echo 'No changes detected, skipping commit.'
else
git commit -a -m "[@${{ github.actor }}] AUTO updated build & check badges and properties"
git commit -a -m "[@${{ github.actor }}] AUTO updated build properties"
git push origin HEAD
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish-revision
name: publish
run-name: HSPyLib build-and-test [@${{ github.actor }}]

on:
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ subprojects {

/* Helper Functions -------------------------------------------------------- */
String detectSpace() {

def output = new ByteArrayOutputStream()
exec {
commandLine 'sh', '-c', 'python3 -c "from sys import prefix, base_prefix; print(prefix != base_prefix);"'
standardOutput = output
}
def is_venv = Boolean.parseBoolean(output.toString())

return is_venv ? '--global' : '--user'
}

Expand Down
53 changes: 0 additions & 53 deletions gradle/badges.gradle

This file was deleted.

20 changes: 0 additions & 20 deletions modules/cfman/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/cfman/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"
20 changes: 0 additions & 20 deletions modules/cfman/check-badge.svg

This file was deleted.

20 changes: 0 additions & 20 deletions modules/clitt/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/clitt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"
20 changes: 0 additions & 20 deletions modules/clitt/check-badge.svg

This file was deleted.

20 changes: 0 additions & 20 deletions modules/datasource/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/datasource/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"
20 changes: 0 additions & 20 deletions modules/datasource/check-badge.svg

This file was deleted.

20 changes: 0 additions & 20 deletions modules/firebase/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/firebase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"
20 changes: 0 additions & 20 deletions modules/firebase/check-badge.svg

This file was deleted.

20 changes: 0 additions & 20 deletions modules/hqt/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/hqt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"

task copyReadme(type: Copy) {
Expand Down
20 changes: 0 additions & 20 deletions modules/hqt/check-badge.svg

This file was deleted.

20 changes: 0 additions & 20 deletions modules/hspylib/build-badge.svg

This file was deleted.

1 change: 0 additions & 1 deletion modules/hspylib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ apply from: "$rootDir/gradle/build-info.gradle"
apply from: "$rootDir/gradle/pypi-publish.gradle"
apply from: "$rootDir/gradle/docker.gradle"
apply from: "$rootDir/gradle/oracle.gradle"
apply from: "$rootDir/gradle/badges.gradle"
apply from: "$rootDir/gradle/docgen.gradle"

task copyReadme(type: Copy) {
Expand Down
Loading

0 comments on commit 0925898

Please sign in to comment.