You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-30 23:44:55 +02:00
Tools: Fixed building macOS app on CI
This commit is contained in:
18
.github/scripts/run_ci.sh
vendored
18
.github/scripts/run_ci.sh
vendored
@ -19,12 +19,6 @@ if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
|
|||||||
IS_PULL_REQUEST=1
|
IS_PULL_REQUEST=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In some case it might not be possible to detect if we're on a pull request, for example when
|
|
||||||
# pushing new code to an existing code (or maybe when pressing "Update branch" from GitHub). In that
|
|
||||||
# case "GITHUB_EVENT_NAME" is "push" it's not clear what else could be checked. It seems safe to
|
|
||||||
# always run the checks anyway so we do this for now.
|
|
||||||
IS_PULL_REQUEST=1
|
|
||||||
|
|
||||||
if [[ $GIT_TAG_NAME = $SERVER_TAG_PREFIX-* ]]; then
|
if [[ $GIT_TAG_NAME = $SERVER_TAG_PREFIX-* ]]; then
|
||||||
IS_SERVER_RELEASE=1
|
IS_SERVER_RELEASE=1
|
||||||
fi
|
fi
|
||||||
@ -147,8 +141,7 @@ fi
|
|||||||
# for Linux only is sufficient.
|
# for Linux only is sufficient.
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
if [ "$IS_PULL_REQUEST" == "1" ]; then
|
if [ "$IS_LINUX" == "1" ]; then
|
||||||
if [ "$IS_LINUX" == "1" ]; then
|
|
||||||
echo "Step: Validating translations..."
|
echo "Step: Validating translations..."
|
||||||
|
|
||||||
node packages/tools/validate-translation.js
|
node packages/tools/validate-translation.js
|
||||||
@ -156,7 +149,6 @@ if [ "$IS_PULL_REQUEST" == "1" ]; then
|
|||||||
if [ $testResult -ne 0 ]; then
|
if [ $testResult -ne 0 ]; then
|
||||||
exit $testResult
|
exit $testResult
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@ -185,8 +177,7 @@ fi
|
|||||||
# See coding_style.md
|
# See coding_style.md
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
if [ "$IS_PULL_REQUEST" == "1" ]; then
|
if [ "$IS_LINUX" == "1" ]; then
|
||||||
if [ "$IS_LINUX" == "1" ]; then
|
|
||||||
echo "Step: Checking for files that should have been ignored..."
|
echo "Step: Checking for files that should have been ignored..."
|
||||||
|
|
||||||
node packages/tools/checkIgnoredFiles.js
|
node packages/tools/checkIgnoredFiles.js
|
||||||
@ -194,7 +185,6 @@ if [ "$IS_PULL_REQUEST" == "1" ]; then
|
|||||||
if [ $testResult -ne 0 ]; then
|
if [ $testResult -ne 0 ]; then
|
||||||
exit $testResult
|
exit $testResult
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@ -219,8 +209,7 @@ fi
|
|||||||
# Spellchecking
|
# Spellchecking
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
if [ "$IS_PULL_REQUEST" == "1" ]; then
|
if [ "$IS_LINUX" == "1" ]; then
|
||||||
if [ "$IS_LINUX" == "1" ]; then
|
|
||||||
echo "Step: Spellchecking..."
|
echo "Step: Spellchecking..."
|
||||||
|
|
||||||
yarn spellcheck --all
|
yarn spellcheck --all
|
||||||
@ -228,7 +217,6 @@ if [ "$IS_PULL_REQUEST" == "1" ]; then
|
|||||||
if [ $testResult -ne 0 ]; then
|
if [ $testResult -ne 0 ]; then
|
||||||
exit $testResult
|
exit $testResult
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
Reference in New Issue
Block a user