@@ -1715,13 +1715,14 @@ run_e2e_tests () {
1715
1715
# Chrome
1716
1716
mkdir -p " $TESTS_RESULTS "
1717
1717
yarn test:client 2>&1 | tee " $TESTS_RESULTS /logs.txt"
1718
+ local RET=" ${PIPESTATUS[0]} "
1718
1719
1719
1720
# Firefox
1720
1721
# PUPPETEER_PRODUCT=firefox yarn add puppeteer
1721
1722
# yarn link "@kalisio/kdk" --link-folder /opt/kalisio/yarn-links
1722
1723
# export BROWSER="firefox"bucket
1723
1724
# mkdir -p "$ROOT_DIR/test/run/firefox"
1724
- return $? # return the exit code of the tests
1725
+ return " $RET " # return the exit code of the tests
1725
1726
}
1726
1727
1727
1728
# Upload e2e tests artefacts to some s3 storage.
@@ -1896,6 +1897,14 @@ push_e2e_tests_report_to_git_repo() {
1896
1897
mkdir -p " $REPORT_DIR "
1897
1898
1898
1899
cp " $REPORT_FILE " " $REPORT_DIR "
1900
+
1901
+ # Try add link to 'latest' section
1902
+ local LATEST_REPORT
1903
+ LATEST_REPORT=$( realpath --relative-to=" $WORK_DIR " " $REPORT_FILE " )
1904
+
1905
+ # It's ok if this fails
1906
+ sed -i ' s/^[' " $APP " ' e2e](.*)$/[' " $APP " ' e2e](' " $LATEST_REPORT " ' )/' " $WORK_DIR /README.md" || true
1907
+
1899
1908
cd " $WORK_DIR "
1900
1909
git add --all
1901
1910
git -c user.name=
" CI bot" -c user.email=
" [email protected] " commit --message
" ci: e2e tests report from $TIMESTAMP "
@@ -1922,7 +1931,7 @@ run_and_publish_e2e_tests_to_git_repo() {
1922
1931
local REPOSITORY_URL=" $5 "
1923
1932
local REPORTS_BASE=" $6 "
1924
1933
1925
- run_e2e_tests " $ROOT_DIR " " $APP "
1934
+ run_e2e_tests " $ROOT_DIR " " $APP " || true
1926
1935
1927
1936
local MD_FLAVOR
1928
1937
[[ " $REPOSITORY_URL " = * gitlab* ]] && MD_FLAVOR=" gitlab"
0 commit comments