Skip to content

Commit

Permalink
automataCI: backported finalization changes for chocolatey packager
Browse files Browse the repository at this point in the history
There were some finalization changes not applied for chocolatey
packager function. Hence, let's do this.

This patch backports finalization changes for chocolatey packager in
automataCI/ directory.

Co-authored-by: Galyna, Cory <[email protected]>
Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]>
Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
  • Loading branch information
hollowaykeanho and corygalyna committed Dec 16, 2023
1 parent 621d9e1 commit 8bd12e1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions automataCI/_package-chocolatey_unix-any.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi



PACKAGE_Run_Chocolatey() {
PACKAGE_Run_CHOCOLATEY() {
#__line="$1"


Expand Down Expand Up @@ -78,7 +78,7 @@ PACKAGE_Run_Chocolatey() {


# copy all complimentary files to the workspace
cmd="PACKAGE_Assemble_Chocolatey_Content"
cmd="PACKAGE_Assemble_CHOCOLATEY_Content"
I18N_Status_Print_Package_Assembler_Check "$cmd"
OS::is_command_available "$cmd"
if [ $? -ne 0 ]; then
Expand Down Expand Up @@ -129,7 +129,7 @@ PACKAGE_Run_Chocolatey() {
__name="${__name}-chocolatey_${PROJECT_VERSION}_${_target_os}-${_target_arch}.nupkg"
__name="${_dest}/${__name}"
I18N_Status_Print_File_Archive "$__name"
CHOCOLATEY::archive "$__name" "$_src"
CHOCOLATEY_Archive "$__name" "$_src"
if [ $__exit -ne 0 ]; then
I18N_Status_Print_File_Archive_Failed
return 1
Expand All @@ -138,9 +138,9 @@ PACKAGE_Run_Chocolatey() {

# test the package
I18N_Status_Print_Package_Testing "$__name"
CHOCOLATEY::is_available
CHOCOLATEY_Is_Available
if [ $? -eq 0 ]; then
CHOCOLATEY::test "$__name"
CHOCOLATEY_Test "$__name"
if [ $? -ne 0 ]; then
I18N_Status_Print_Package_Testing_Failed
return 1
Expand Down
2 changes: 1 addition & 1 deletion automataCI/_package-chocolatey_windows-any.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (-not (Test-Path -Path $env:PROJECT_PATH_ROOT)) {



function PACKAGE-Run-Chocolatey {
function PACKAGE-Run-CHOCOLATEY {
param (
[string]$__line
)
Expand Down
2 changes: 1 addition & 1 deletion automataCI/package_unix-any.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ ${__common}|${__log}|PACKAGE_Run_CARGO

__log="${__log_directory}/chocolatey_${TARGET_FILENAME}_${TARGET_OS}-${TARGET_ARCH}.log"
FS::append_file "$__parallel_control" "\
${__common}|${__log}|PACKAGE_Run_Chocolatey
${__common}|${__log}|PACKAGE_Run_CHOCOLATEY
"
if [ $? -ne 0 ]; then
return 1
Expand Down
2 changes: 1 addition & 1 deletion automataCI/package_windows-any.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ ${__common}|${__log}|PACKAGE-Run-CARGO

$__log = "${__log_directory}\chocolatey_${TARGET_FILENAME}_${TARGET_OS}-${TARGET_ARCH}.log"
$__process = FS-Append-File "${__parallel_control}" @"
${__common}|${__log}|PACKAGE-Run-Chocolatey
${__common}|${__log}|PACKAGE-Run-CHOCOLATEY
"@
if ($__process -ne 0) {
return 1
Expand Down
8 changes: 4 additions & 4 deletions automataCI/services/publishers/chocolatey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
. "${env:PROJECT_PATH_ROOT}\${env:PROJECT_PATH_AUTOMATA}\services\io\os.ps1"
. "${env:PROJECT_PATH_ROOT}\${env:PROJECT_PATH_AUTOMATA}\services\io\fs.ps1"
. "${env:PROJECT_PATH_ROOT}\${env:PROJECT_PATH_AUTOMATA}\services\io\net\http.ps1"
. "${env:PROJECT_PATH_ROOT}\${env:PROJECT_PATH_AUTOMATA}\services\archive\zip.ps1"
. "${env:LIBS_AUTOMATACI}\services\io\os.ps1"
. "${env:LIBS_AUTOMATACI}\services\io\fs.ps1"
. "${env:LIBS_AUTOMATACI}\services\io\net\http.ps1"
. "${env:LIBS_AUTOMATACI}\services\archive\zip.ps1"



Expand Down
10 changes: 5 additions & 5 deletions automataCI/services/publishers/chocolatey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
. "${PROJECT_PATH_ROOT}/${PROJECT_PATH_AUTOMATA}/services/io/os.sh"
. "${PROJECT_PATH_ROOT}/${PROJECT_PATH_AUTOMATA}/services/io/fs.sh"
. "${PROJECT_PATH_ROOT}/${PROJECT_PATH_AUTOMATA}/services/io/strings.sh"
. "${PROJECT_PATH_ROOT}/${PROJECT_PATH_AUTOMATA}/services/io/net/http.sh"
. "${PROJECT_PATH_ROOT}/${PROJECT_PATH_AUTOMATA}/services/archive/zip.sh"
. "${LIBS_AUTOMATACI}/services/io/os.sh"
. "${LIBS_AUTOMATACI}/services/io/fs.sh"
. "${LIBS_AUTOMATACI}/services/io/strings.sh"
. "${LIBS_AUTOMATACI}/services/io/net/http.sh"
. "${LIBS_AUTOMATACI}/services/archive/zip.sh"



Expand Down
2 changes: 1 addition & 1 deletion src/.ci/_package-chocolatey_unix-any.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi



PACKAGE_Assemble_Chocolatey_Content() {
PACKAGE_Assemble_CHOCOLATEY_Content() {
_target="$1"
_directory="$2"
_target_name="$3"
Expand Down
2 changes: 1 addition & 1 deletion srcRUST/.ci/_package-chocolatey_unix-any.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi



PACKAGE_Assemble_Chocolatey_Content() {
PACKAGE_Assemble_CHOCOLATEY_Content() {
_target="$1"
_directory="$2"
_target_name="$3"
Expand Down

0 comments on commit 8bd12e1

Please sign in to comment.