-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automataCI: upgraded from npm to libraries packaging
Since npm is a library itself, we can proceed to create a libraries CI tasks instead of serving specifically for NPM. That way, other technologies' libraries can share the same production processes for maximum consistencies. Hence, let's do this. This patch upgrades from npm to libraries packaging in automataCI/ directory. Co-authored-by: Shuralyov, Jean <[email protected]> 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
1 parent
a4e0b55
commit 6c5849c
Showing
48 changed files
with
1,364 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/bin/sh | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
. "${LIBS_AUTOMATACI}/services/io/os.sh" | ||
. "${LIBS_AUTOMATACI}/services/io/fs.sh" | ||
. "${LIBS_AUTOMATACI}/services/i18n/translations.sh" | ||
|
||
|
||
|
||
|
||
# initialize | ||
if [ "$PROJECT_PATH_ROOT" = "" ]; then | ||
>&2 printf "[ ERROR ] - Please run me from automataCI/ci.sh.ps1 instead!\n" | ||
return 1 | ||
fi | ||
|
||
|
||
|
||
|
||
PACKAGE_Run_LIB() { | ||
#__line="$1" | ||
|
||
|
||
# parse input | ||
__line="$1" | ||
|
||
_dest="${__line%%|*}" | ||
__line="${__line#*|}" | ||
|
||
_target="${__line%%|*}" | ||
__line="${__line#*|}" | ||
|
||
_target_filename="${__line%%|*}" | ||
__line="${__line#*|}" | ||
|
||
_target_os="${__line%%|*}" | ||
__line="${__line#*|}" | ||
|
||
_target_arch="${__line%%|*}" | ||
__line="${__line#*|}" | ||
|
||
|
||
# copy all complimentary files to the workspace | ||
cmd="PACKAGE_Assemble_LIB_Content" | ||
I18N_Check_Function "$cmd" | ||
OS_Is_Command_Available "$cmd" | ||
if [ $? -ne 0 ]; then | ||
I18N_Check_Failed | ||
return 1 | ||
fi | ||
|
||
I18N_Assemble_Package | ||
"$cmd" "$_target" "$_dest" "$_target_filename" "$_target_os" "$_target_arch" | ||
case $? in | ||
10) | ||
I18N_Assemble_Skipped | ||
return 0 | ||
;; | ||
0) | ||
# accepted | ||
;; | ||
*) | ||
I18N_Assemble_Failed | ||
return 1 | ||
;; | ||
esac | ||
|
||
|
||
# report status | ||
return 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.