Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Cleaning up repository branches and configurations (#1009)
Browse files Browse the repository at this point in the history
* refactor circle ci and functional-tests

Signed-off-by: GuillaumeFalourd <[email protected]>

* update assert2.txt functional test

Signed-off-by: GuillaumeFalourd <[email protected]>

* update assert6.txt functional test

Signed-off-by: GuillaumeFalourd <[email protected]>

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* remove merge-qa option

Signed-off-by: GuillaumeFalourd <[email protected]>

* update test-core-parent-commands.yml file

Signed-off-by: GuillaumeFalourd <[email protected]>

* update Makefile

Signed-off-by: GuillaumeFalourd <[email protected]>

* remove config beta

Signed-off-by: GuillaumeFalourd <[email protected]>

* Lint Job

Signed-off-by: maurineimirandazup <[email protected]>

* Run on all pushes

Signed-off-by: maurineimirandazup <[email protected]>

* Unit Test

Signed-off-by: maurineimirandazup <[email protected]>

* Upload to codecov

Signed-off-by: maurineimirandazup <[email protected]>

* Change cov file

Signed-off-by: maurineimirandazup <[email protected]>

* Change master to main

Signed-off-by: maurineimirandazup <[email protected]>

* env: migrate ci from release generation from circleci to actions

Signed-off-by: lucas.dittrich <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: maurineimirandazup <[email protected]>
Co-authored-by: lucas.dittrich <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2021
1 parent c1ea15c commit 3220f54
Show file tree
Hide file tree
Showing 50 changed files with 859 additions and 1,609 deletions.
506 changes: 0 additions & 506 deletions .circleci/config.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/scripts/gen-deb.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .circleci/scripts/gen-rpm.sh

This file was deleted.

70 changes: 0 additions & 70 deletions .circleci/scripts/gen-win.ps1

This file was deleted.

143 changes: 0 additions & 143 deletions .circleci/scripts/routing.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .github/ritchie-bot-config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
merge_branch:
enable: true # Enable merge branch with comment
branches: ['qa'] # Branches enabled to merge with comment
users: [
'brunasilvazup',
'fabianofernandeszup',
'fernandobelettizup',
'guillaumefalourd',
'henriquemoraeszup',
'kaduartur',
'lucasdittrichzup',
'maurineimirandazup',
'rodrigomedeirosf'
] # Users enabled to merge with comment

issue_project:
enable: false # Enable issue to project when opening a new issue
4 changes: 2 additions & 2 deletions packaging/debian/deb.json → .github/scripts/debian/deb.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"fperm": "0755"
}
],
"postinst-file": "packaging/scripts/postinst.sh"
}
"postinst-file": ".github/scripts/postinst.sh"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function printUsage() {
echo -e "\033[1mOptions:\033[0m"
echo " -h (--help)"
echo
echo -e "\033[1mExample::\033[0m"
echo -e "\033[1mExample:\033[0m"
echo "$0 wso2am 2.6.0"
}

Expand All @@ -34,10 +34,10 @@ if [ -z "$1" ]; then
printUsage
exit 1
else
echo "Application Name : $1"
echo "Application Name: $1"
fi
if [[ "$2" =~ [0-9]+.[0-9]+.[0-9]+ ]]; then
echo "Application Version : $2"
echo "Application Version: $2"
else
echo "Please enter a valid version for your application (fromat [0-9].[0-9].[0-9])"
echo
Expand Down Expand Up @@ -169,13 +169,13 @@ function signProduct() {
function createInstaller() {
log_info "Application installer generation process started.(3 Steps)"
buildPackage
buildProduct ${PRODUCT}-macos-installer-x64-${VERSION}.pkg
buildProduct ${PRODUCT}.pkg
if [ -z "${APPLE_DEVELOPER_CERTIFICATE_ID}" ]; then
echo "No certificate informed. Skiped signing process."
echo
else
echo "Developer ID Installer : ${APPLE_DEVELOPER_CERTIFICATE_ID}"
signProduct ${PRODUCT}-macos-installer-x64-${VERSION}.pkg
echo "Developer ID Installer: ${APPLE_DEVELOPER_CERTIFICATE_ID}"
signProduct ${PRODUCT}.pkg
fi
log_info "Application installer generation steps finished."
}
Expand All @@ -186,16 +186,6 @@ function createUninstaller(){
sed -i '' -e "s/__PRODUCT__/${PRODUCT}/g" "${TARGET_DIRECTORY}/darwinpkg/Library/${PRODUCT}/uninstall.sh"
}

#Pre-requisites
command -v mvn -v >/dev/null 2>&1 || {
log_warn "Apache Maven was not found. Please install Maven first."
# exit 1
}
command -v ballerina >/dev/null 2>&1 || {
log_warn "Ballerina was not found. Please install ballerina first."
# exit 1
}

#Main script
log_info "Installer generating process started."

Expand Down
File renamed without changes.
35 changes: 35 additions & 0 deletions .github/scripts/routing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

function metric_server {

VERSION=$RELEASE_VERSION

if expr "$VERSION" : '.*qa.*' >/dev/null; then
echo "https://ritchie-metrics.devdennis.zup.io/v2/metrics"
elif expr "$VERSION" : '.*stg.*' >/dev/null; then
echo "https://ritchie-metrics.stgdennis.zup.io/v2/metrics"
elif expr "$VERSION" : '^[0-9]\+' >/dev/null; then
echo "https://ritchie-metrics.prddennis.zup.io/v2/metrics"
else
echo ""
fi

}

function version {
export RELEASE_VERSION=$(curl https://commons-repo.ritchiecli.io/stable.txt)
}

function caller {

elif expr "$1" : "metric_server" >/dev/null; then
version
metric_server
else
echo "Unable to process params"
exit 1
fi

}

caller "$1"
4 changes: 2 additions & 2 deletions packaging/rpm/rpm.json → .github/scripts/rpm/rpm.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"type": ""
}
],
"postinst": "packaging/scripts/postinst.sh"
}
"postinst": ".github/scripts/postinst.sh"
}
File renamed without changes.
Loading

0 comments on commit 3220f54

Please sign in to comment.