Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
eepm
Commits
cd354aac
Commit
cd354aac
authored
Oct 13, 2025
by
Ivan Mazhukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm ci: fix commit error
parent
498b9963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
gen-ci.sh
gen-ci.sh
+25
-9
No files found.
gen-ci.sh
View file @
cd354aac
...
...
@@ -28,18 +28,34 @@ for app in $apps; do
echo
" - export EGET_IPFS_FORCE_LOAD=1"
echo
" - export EPM_IPFS_DB_UPDATE_SKIPPING=1"
echo
" - export EGET_IPFS_API=/ip4/91.232.225.49/tcp/5001"
# 1) run the updater and DO NOT fail on its return code
echo
" - set +e"
echo
" - EPM=
\$
(pwd)/epm bash ../tests/update_versions.sh --ipfs --force --slow
\"
$app
\"
"
echo
" - update_exit_code=
\$
?"
echo
" - set -e"
# 2) determine the package name and the path to the version file
echo
" - |"
echo
" PKG=
\$
(./epm play --package-name
\"
$app
\"
)"
echo
" VF=
\"\$
CI_PROJECT_DIR/epm-play-versions/
\$
PKG
\"
"
echo
" if [ ! -s
\"\$
VF
\"
]; then"
echo
" TMP=
\$
(mktemp)"
echo
" if ./epm print version for package
\"\$
PKG
\"
>
\"\$
TMP
\"
2>>
\"\$
CI_PROJECT_DIR/epm-errors/
\$
PKG
\"
; then"
echo
" if [ -s
\"\$
TMP
\"
]; then mv -f
\"\$
TMP
\"
\"\$
VF
\"
; else rm -f
\"\$
TMP
\"
; fi"
echo
" else"
echo
" rm -f
\"\$
TMP
\"
"
echo
" fi"
echo
" package_name=
\$
(./epm play --package-name
\"
$app
\"
)"
echo
" version_file_path=
\"\$
CI_PROJECT_DIR/epm-play-versions/
\$
package_name
\"
"
# 3) if the version is missing — try to write it ourselves, ignore any errors
echo
" - |"
echo
" if [ ! -s
\"\$
version_file_path
\"
]; then"
echo
" tmp_file=
\$
(mktemp)"
echo
" ./epm print version for package
\"\$
package_name
\"
>
\"\$
tmp_file
\"
2>>
\"\$
CI_PROJECT_DIR/epm-errors/
\$
package_name
\"
|| true"
echo
" if [ -s
\"\$
tmp_file
\"
]; then mv -f
\"\$
tmp_file
\"
\"\$
version_file_path
\"
; else rm -f
\"\$
tmp_file
\"
; fi"
echo
" fi"
# 4) final code: success is determined by the presence of the version file
echo
" - |"
echo
" if [ -s
\"\$
version_file_path
\"
]; then"
echo
" echo
\"
V Successful installation: version recorded in
\$
version_file_path
\"
"
echo
" final_exit_code=0"
echo
" else"
echo
" echo
\"
X Version not recorded. Installation or test error.
\"
"
echo
" final_exit_code=
\$
update_exit_code"
echo
" fi"
# 5) explicitly finish the job with the required exit code
echo
" - echo
\"
test rc:
\$
final_exit_code
\"
"
echo
" - exit
\"\$
final_exit_code
\"
"
echo
" artifacts:"
echo
" when: always"
echo
" expire_in: 2 days"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment