Commit Graph

40 Commits

Author SHA1 Message Date
Simon Brandhof
66d4e6772a SONAR-12246 Remove unused mysql files 2019-07-10 08:36:51 +02:00
philippe-perrin-sonarsource
41f73e8c27 Add support for Windows in ./scripts/start.sh 2019-06-11 20:21:11 +02:00
Sébastien Lesaint
ade9096666 [script] fix logs.sh 2018-10-03 09:28:20 +02:00
Duarte Meneses
323edff58d Support edition aliases in start script 2018-06-14 11:50:35 +02:00
Sébastien Lesaint
6d00d795cd [scripts] drop now useless targetDirOf function in edition.sh 2018-06-13 20:20:50 +02:00
Sébastien Lesaint
7e59b1e27f [scripts] declare bash function in portable fashion 2018-06-12 20:21:01 +02:00
Sébastien Lesaint
77f771b041 [scripts] don't use pattern matching operator unless needed 2018-06-12 20:21:01 +02:00
Sébastien Lesaint
41df354386 [scripts] use a more portable bash shebang 2018-06-12 20:21:01 +02:00
Sébastien Lesaint
4264ca3f1c SONAR-10690 start.sh, stop.sh & logs.sh support SQ editions 2018-06-12 20:20:59 +02:00
Janos Gyerik
31436ae379
Fix minor safety issues in built-in patches (#3155)
* Add shebang line for all patches

* Properly double-quote variables used on the command line

* Use different debug port for debug CE and Web

* Add double-quotes around long -agentlib option too
2018-03-15 12:05:01 +01:00
David Rautureau
1a17e4302e Move To Gradle 2018-03-09 11:33:38 +01:00
Janos Gyerik
8149055e1f
Fix quoting issues causing a failure in OSX, and other quality issues (#2851)
* Avoid useless cat

* Properly quote command line arguments

* Use [ \t] instead of \s for BSD sed

* Do not delete commented out property settings, by matching strictly at start of line

* Add forgotten double-quotes

* Explicitly escape \t (advice by shellcheck.net)
2018-01-12 15:52:19 +01:00
Janos Gyerik
be37450079
Add USER_PATCHES_HOME support and minor quality improvements (#2815) 2017-11-21 16:50:40 +01:00
Simon Brandhof
da112ac51d Add development patches for start.sh 2017-11-17 21:18:43 +01:00
Sébastien Lesaint
93044147ce [SCRIPTS] fix argument passing in property_utils.sh 2017-09-22 09:32:25 +02:00
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
2017-07-24 09:55:16 +02:00
Simon Brandhof
70b6899988 Move integration tests to directory tests/ 2017-06-25 23:42:50 +02:00
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
2017-05-26 11:56:39 +02:00
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
2017-01-10 12:01:57 +01:00
Sébastien Lesaint
f2fb3f2d67 [script] avoid side effects in call_patches function 2017-01-10 12:01:57 +01:00
Sébastien Lesaint
0ce4d2cae3 [script] add logs.sh + tail all SQ log files in start.sh 2017-01-03 15:41:42 +01:00
Janos Gyerik
48996da870 [script] Do not use deprecated -# flag of tail 2016-11-23 14:17:46 +01:00
Janos Gyerik
38b4f6911e [script] Simplify condition 2016-11-23 14:17:33 +01:00
Janos Gyerik
a884c4e4b2 [script] Double-quote to prevent globbing and word splitting 2016-11-23 14:17:29 +01:00
Janos Gyerik
6946d773d9 [script] Use conditons on cmd directly instead of indirectly on $? 2016-11-23 14:17:24 +01:00
Janos Gyerik
7ed6224f07 [script] Redirect output in a simpler and more natural way 2016-11-23 14:17:14 +01:00
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')
2016-08-22 11:48:39 +02:00
Patrice Clement
b66e224d79 wc accepts files as input parameter.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
2016-08-18 10:01:25 +02:00
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>
2016-08-18 10:01:25 +02:00
Patrice Clement
7e603f7846 Use -z flag to properly test for stirng length.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
2016-08-18 10:01:25 +02:00
Patrice Clement
5da8e1cf99 Remove extraneous echo calls in showHelp().
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
2016-08-18 10:01:25 +02:00
Sébastien Lesaint
33e4a00751 [script] use local variable rather than function arguments 2016-05-23 16:56:27 +02:00
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
2016-05-23 16:43:34 +02:00
Sébastien Lesaint
411eb18952 [SCRIPTS] unziping silently in start.sh 2015-08-06 14:18:35 +02:00
Sébastien Lesaint
f6e2fa2b31 [SCRIPTS] make patches more visible in logs 2015-08-06 14:18:35 +02:00
Sébastien Lesaint
9b6151d128 [SCRIPTS] add support to set non existing property in property_utils 2015-08-06 14:18:35 +02:00
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
2015-08-06 14:18:35 +02:00
Sébastien Lesaint
8b5dcb5e0b add command line options to generate_batch_reports.sh 2015-07-02 16:14:34 +02:00
Sébastien Lesaint
53af877a1a use a private repo before building in generate_batch_reports.sh 2015-07-02 16:14:34 +02:00
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
2015-07-02 16:14:34 +02:00