-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/it app veyour #682
Feature/it app veyour #682
Conversation
@jmecosta test failed. Not ready for merging? |
nop, its waiting for these to be answered: looks to me sonarqube has a bug |
1569877
to
52125ce
Compare
2c662d7
to
0135150
Compare
@guwirth another question, is that there are some tests that might run only on unix environments since they have -Dsonar.include=/usr/include |
@jmecosta will have a look and add an integration test |
It's fine to extend the multi module 2 since we have some hard coded paths that need fixing so it can be run in both envs |
8f4a9bc
to
634d6e5
Compare
@guwirth now its are running in both appveyour and travis,ive include helper method to skip scenario if platform is not correct. the only issue now is with the ${TestDataFolder} not being translated in the plugin when set via environment variable in travis and appveyour |
@jmecosta I have CxxProjectBuilder running again. Which value should sonar.cxx.cppcheck.reportPath=/home/travis/build/SonarOpenCommunity/sonar-cxx/integration-tests/testdata/cpp-multimodule-project-2-reports/reports-cppcheck/*.xml |
in travis is /home/travis/build/SonarOpenCommunity/sonar-cxx/integration-tests/testdata/ and in appveyour TestDataFolder=C:\projects\sonar-cxx\integration-tests\testdata those are set in the yml files cmd: SET TestDataFolder=C:\projects\sonar-cxx\integration-tests\testdata RAILS_ENV=production PATH=$PATH:/tmp/sonar-runner-2.4/bin TestDataFolder=~/sonar-cxx/integration-tests/testdata behave when users are running those thye need also set those accordinlgy... we might need to find a better way to handle this, like set it during the test with running path so it works everywhere. |
81b275f
to
ed71bf7
Compare
some findings with sonarqube 5.3:
|
more findings:
curios since the compilation and starting the builds is much faster than travis. there must be something weird and its work to investigate this better. probably we require support from appveyour guys |
@guwirth still faling, the expansion is now printed into log however its not used in the report sensor |
multi-module project:
|
And rebase missing? |
It should be rebased! At least I can see the cxxprojwct builder printing stuff to the log |
ok, seems missed something. i rebase |
ed71bf7
to
c02e00b
Compare
the multi module project 1, seems not bother himself by the fact the projectBaseDir is . . passes both on windows and unix so i will leave it like that |
@guwirth yep still fails, i think i had rebase it already. relevant sutff: 16:08:14.645 DEBUG - property expansion: key 'sonar.cxx.cppcheck.reportPath'; value '${TestDataFolder}/cpp-multimodule-project-2-reports/reports-cppcheck/.xml' => '/home/travis/sonar-cxx/integration-tests/testdata/cpp-multimodule-project-2-reports/reports-cppcheck/.xml' 16:08:18.202 DEBUG - Using pattern '${TestDataFolder}/cpp-multimodule-project-2-reports/reports-cppcheck/.xml' to find reports https://s3.amazonaws.com/archive.travis-ci.org/jobs/101420428/log.txt |
@jmecosta really strange. I did several tests with Windows 7, SQ 5.1.2, slash/backslash, environment variable/-D option, ... it was working. |
Did you try to run the it tests with current master and make the change I On Sun, Jan 10, 2016, 21:23 Günter Wirth [email protected] wrote:
|
@jmecosta have less time this week but will try. |
Ok no prob. This is just for the sake of making sure we have this working On Mon, Jan 11, 2016, 19:40 Günter Wirth [email protected] wrote:
|
exactly the same as with wrong path. 10:07:22.913 DEBUG - Using pattern '${TestDataFolder}/cpp-multimodule-project-2-reports/reports-cppcheck/.xml' to find reports ok so it seems the current implementation does not work in multi module since #756 is passing |
@jmecosta will have a look what's different with multi-module projects. |
0212207
to
cd20d37
Compare
2d2e13a
to
5936106
Compare
2a4e91d
to
c6a5560
Compare
@guwirth ready to review and merge. few things . the differences in metrics observed in 5.3 ive comment them in the its tests, when we have new LTS than we can enable those again. same for the test density |
@jmecosta thanks for providing this looks good. 👍 cpp-multimodule-project is commented out? Is this because of placeholder/ multi-module problem? |
@guwirth yes, this is disabled because of the issue we were investigating earlier when environment variables not being properly picked in this kind of multi module approach. i can open a pull request and enable the test back again so you can try to look at it (not sure, but i thought it was the last change made to this that broke it, i tought the first implementation for env variables was working). |
Sounds good On Mon, 8 Feb 2016 23:39 Günter Wirth [email protected] wrote:
|
this just enables it in appveyour