mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Make build fail if tests don't pass
This commit is contained in:
parent
f3e9668eb7
commit
ec89ebc6b0
12
.travis.yml
12
.travis.yml
@ -54,8 +54,20 @@ before_install:
|
||||
|
||||
script:
|
||||
- |
|
||||
# Instal tools
|
||||
cd Tools
|
||||
npm install
|
||||
|
||||
# Run test units
|
||||
cd CliClient
|
||||
npm install
|
||||
./run_test.sh
|
||||
testResult=$?
|
||||
if [ $testResult -ne 0 ]; then
|
||||
exit $testResult
|
||||
fi
|
||||
|
||||
# Prepare the Electron app and build it
|
||||
cd ../ElectronClient/app
|
||||
rsync -aP --delete ../../ReactNativeClient/lib/ lib/
|
||||
npm install && USE_HARD_LINKS=false yarn dist
|
||||
|
@ -21,27 +21,27 @@ function finish {
|
||||
trap finish EXIT
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
npm test tests-build/ArrayUtils.js
|
||||
npm test tests-build/encryption.js
|
||||
npm test tests-build/EnexToMd.js
|
||||
npm test tests-build/HtmlToMd.js
|
||||
npm test tests-build/markdownUtils.js
|
||||
npm test tests-build/models_BaseItem.js
|
||||
npm test tests-build/models_Folder.js
|
||||
npm test tests-build/models_ItemChange.js
|
||||
npm test tests-build/models_Note.js
|
||||
npm test tests-build/models_Resource.js
|
||||
npm test tests-build/models_Revision.js
|
||||
npm test tests-build/models_Setting.js
|
||||
npm test tests-build/models_Tag.js
|
||||
npm test tests-build/pathUtils.js
|
||||
npm test tests-build/services_InteropService.js
|
||||
npm test tests-build/services_KvStore.js
|
||||
npm test tests-build/services_ResourceService.js
|
||||
npm test tests-build/services_rest_Api.js
|
||||
npm test tests-build/services_SearchEngine.js
|
||||
npm test tests-build/services_Revision.js
|
||||
npm test tests-build/StringUtils.js
|
||||
npm test tests-build/TaskQueue.js
|
||||
npm test tests-build/synchronizer.js
|
||||
npm test tests-build/ArrayUtils.js && \
|
||||
npm test tests-build/encryption.js && \
|
||||
npm test tests-build/EnexToMd.js && \
|
||||
npm test tests-build/HtmlToMd.js && \
|
||||
npm test tests-build/markdownUtils.js && \
|
||||
npm test tests-build/models_BaseItem.js && \
|
||||
npm test tests-build/models_Folder.js && \
|
||||
npm test tests-build/models_ItemChange.js && \
|
||||
npm test tests-build/models_Note.js && \
|
||||
npm test tests-build/models_Resource.js && \
|
||||
npm test tests-build/models_Revision.js && \
|
||||
npm test tests-build/models_Setting.js && \
|
||||
npm test tests-build/models_Tag.js && \
|
||||
npm test tests-build/pathUtils.js && \
|
||||
npm test tests-build/services_InteropService.js && \
|
||||
npm test tests-build/services_KvStore.js && \
|
||||
npm test tests-build/services_ResourceService.js && \
|
||||
npm test tests-build/services_rest_Api.js && \
|
||||
npm test tests-build/services_SearchEngine.js && \
|
||||
npm test tests-build/services_Revision.js && \
|
||||
npm test tests-build/StringUtils.js && \
|
||||
npm test tests-build/TaskQueue.js && \
|
||||
npm test tests-build/synchronizer.js && \
|
||||
npm test tests-build/urlUtils.js
|
@ -45,6 +45,8 @@
|
||||
"CliClient/tests/fuzzing/": true,
|
||||
"CliClient/tests/src/": true,
|
||||
"CliClient/tests/sync/": true,
|
||||
"CliClient/tests/tmp/": true,
|
||||
"CliClient/tests/logs/": true,
|
||||
"Clipper/joplin-webclipper/dist/": true,
|
||||
"Clipper/joplin-webclipper/popup/build/": true,
|
||||
"ElectronClient/app/dist/": true,
|
||||
@ -66,7 +68,6 @@
|
||||
"ReactNativeClient/node_modules/": true,
|
||||
"Server/db*.sqlite/": true,
|
||||
"Server/dist/": true,
|
||||
"tests/logs/": true,
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user