Janos Gyerik
be37450079
Add USER_PATCHES_HOME support and minor quality improvements (#2815)
6 роки тому
Simon Brandhof
da112ac51d
Add development patches for start.sh
6 роки тому
Sébastien Lesaint
93044147ce
[SCRIPTS] fix argument passing in property_utils.sh
6 роки тому
Julien HENRY
4faf1e19c2
Fix start.sh to support bash CD_COMPLAINS
Starting from bash 4.4, passing multiple arguments to `cd` will fail.
https://askubuntu.com/questions/905832/ubuntu-17-04-bash-cd-too-many-arguments#905877
7 роки тому
Simon Brandhof
70b6899988
Move integration tests to directory tests/
7 роки тому
Tom
ce9ac5a32c
Use Trusty image on TravisCI
- environment is more stable through time (no variations of build
durations)
- benefit from 8Gb ramdisk
- enable parallel Maven build thanks to new CPUs
7 роки тому
Tom
430a6a2a30
Use Trusty image on TravisCI
- environment is more stable through time (no variations of build
durations)
- benefit from 8Gb ramdisk
- enable parallel Maven build thanks to new CPUs
7 роки тому
Sébastien Lesaint
c8b1a4508b
[script] fix logs.sh to not require bash 4
because mac bundles bash 3.2 by default rather than bash 4
7 роки тому
Sébastien Lesaint
f2fb3f2d67
[script] avoid side effects in call_patches function
7 роки тому
Sébastien Lesaint
0ce4d2cae3
[script] add logs.sh + tail all SQ log files in start.sh
7 роки тому
Janos Gyerik
48996da870
[script] Do not use deprecated -# flag of tail
7 роки тому
Janos Gyerik
38b4f6911e
[script] Simplify condition
7 роки тому
Janos Gyerik
a884c4e4b2
[script] Double-quote to prevent globbing and word splitting
7 роки тому
Janos Gyerik
6946d773d9
[script] Use conditons on cmd directly instead of indirectly on $?
7 роки тому
Janos Gyerik
7ed6224f07
[script] Redirect output in a simpler and more natural way
7 роки тому
Sébastien Lesaint
6cee9fdcad
Revert "wc accepts files as input parameter."
This reverts commit b66e224d79
.
if FILE variable contains bash variables (such as $HOME) they are not resolved and script fails (because of 'set -euo pipefail')
7 роки тому
Patrice Clement
b66e224d79
wc accepts files as input parameter.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
8 роки тому
Patrice Clement
81c8363c09
Variables should be local to each function to avoid clashing in the global namespace.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
8 роки тому
Patrice Clement
7e603f7846
Use -z flag to properly test for stirng length.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
8 роки тому
Patrice Clement
5da8e1cf99
Remove extraneous echo calls in showHelp().
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
8 роки тому
Sébastien Lesaint
33e4a00751
[script] use local variable rather than function arguments
8 роки тому
Priit Liivak
047e954bd5
[script] make property_utils.sh run on OSX + improve "if grep"
Now works on OSX: inline is required since in OSX providing '' as variable does not work.
More reliable OS independent version of this script.
Fixed incorrect backslash count in REGEX variable
Applied recommendations for "if grep" http://mywiki.wooledge.org/BashPitfalls#if_.5Bgrep_foo_myfile.5D
8 роки тому
Sébastien Lesaint
411eb18952
[SCRIPTS] unziping silently in start.sh
9 роки тому
Sébastien Lesaint
f6e2fa2b31
[SCRIPTS] make patches more visible in logs
9 роки тому
Sébastien Lesaint
9b6151d128
[SCRIPTS] add support to set non existing property in property_utils
9 роки тому
Sébastien Lesaint
c31e066717
[SCRIPTS] add support for patches to start.sh
use seperate start and stop to avoid unpredictable errors when applying patches on a live SQ instance
9 роки тому
Sébastien Lesaint
8b5dcb5e0b
add command line options to generate_batch_reports.sh
9 роки тому
Sébastien Lesaint
53af877a1a
use a private repo before building in generate_batch_reports.sh
9 роки тому
Sébastien Lesaint
5f9538c9a9
add ability to dump batch report enabled by sonar.batch.dumpReportDir
batch report dump are saved in the directory specified by the property sonar.batch.dumpReportDir and the batch is NOT pushed to the server
9 роки тому