mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Disable test units when releasing version
This commit is contained in:
parent
a3279ab164
commit
211c02c7de
20
.travis.yml
20
.travis.yml
@ -60,15 +60,19 @@ script:
|
|||||||
npm install
|
npm install
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Run test units
|
# Run test units.
|
||||||
cd CliClient
|
# Only do it for pull requests because Travis randomly fails to run them
|
||||||
npm install
|
# and that would break the desktop release.
|
||||||
./run_test.sh
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
testResult=$?
|
cd CliClient
|
||||||
if [ $testResult -ne 0 ]; then
|
npm install
|
||||||
exit $testResult
|
./run_test.sh
|
||||||
|
testResult=$?
|
||||||
|
if [ $testResult -ne 0 ]; then
|
||||||
|
exit $testResult
|
||||||
|
fi
|
||||||
|
cd ..
|
||||||
fi
|
fi
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Run linter for pull requests only - this is so that
|
# Run linter for pull requests only - this is so that
|
||||||
# bypassing eslint is allowed for urgent fixes.
|
# bypassing eslint is allowed for urgent fixes.
|
||||||
|
Loading…
Reference in New Issue
Block a user