Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Conversation

@t-b
Copy link
Collaborator

@t-b t-b commented Oct 25, 2019

Close #567.

@t-b t-b changed the title Default pch to on Default PCH to on Oct 28, 2019
t-b added 2 commits October 28, 2019 12:30
As we tend to add more env variables for customizing the builds, the
lines get longer and longer.

To improve readability we now define the defaults as global and only
override the ones we need to.
And also add one more job which ensure that not using PCH still
compiles.
@t-b t-b force-pushed the default-PCH-to-ON branch from 619f415 to 912d188 Compare October 28, 2019 11:32
@mliszcz
Copy link
Collaborator

mliszcz commented Oct 28, 2019

Looks good to me.

Copy link
Member

@bourtemb bourtemb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK then! Thanks!
Looks good to me!

@t-b t-b merged commit 75c04f1 into tango-controls:tango-9-lts Oct 30, 2019
@t-b t-b deleted the default-PCH-to-ON branch October 30, 2019 11:40
@bourtemb
Copy link
Member

This PR disabled SONAR_SCANNER and COVERALLS which used to be ON when building on Debian 8.
I don't remember whether we discussed this point or if we missed that point when reviewing this PR?

@t-b
Copy link
Collaborator Author

t-b commented Jan 22, 2020

@bourtemb Good point. I think we want

OS_TYPE=debian10 USE_PCH=OFF RUN_TESTS=OFF SONAR_SCANNER=ON

or?

@bourtemb
Copy link
Member

@bourtemb Good point. I think we want

OS_TYPE=debian10 USE_PCH=OFF RUN_TESTS=OFF SONAR_SCANNER=ON

or?

and COVERALLS=ON too

@t-b
Copy link
Collaborator Author

t-b commented Jan 22, 2020

@bourtemb Yes, but let's go with readding it to debian8 as @mliszcz did in #568.

@mliszcz
Copy link
Collaborator

mliszcz commented Jan 22, 2020

Hi @t-b and @bourtemb

Do you have any experience with sonar and coveralls setup? Below are logs from Debian 8 job:

https://travis-ci.org/tango-controls/cppTango/jobs/640430653?utm_medium=notification&utm_source=github_status

Coveralls:

[  0%] Built target coveralls_generate
make -f CMakeFiles/coveralls_upload.dir/build.make CMakeFiles/coveralls_upload.dir/depend
make[3]: Entering directory '/home/tango/src/build'
cd /home/tango/src/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tango/src /home/tango/src /home/tango/src/build /home/tango/src/build /home/tango/src/build/CMakeFiles/coveralls_upload.dir/DependInfo.cmake --color=
Scanning dependencies of target coveralls_upload
make[3]: Leaving directory '/home/tango/src/build'
make -f CMakeFiles/coveralls_upload.dir/build.make CMakeFiles/coveralls_upload.dir/build
make[3]: Entering directory '/home/tango/src/build'
/usr/bin/cmake -E cmake_progress_report /home/tango/src/build/CMakeFiles 34
[100%] Uploading coveralls output...
/usr/bin/curl -S -F json_file=@/home/tango/src/build/coveralls.json https://coveralls.io/api/v1/jobs
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 15 1031k    0     0   15  160k      0  1260k --:--:-- --:--:-- --:--:-- 1261k
100 1031k    0    72  100 1031k     54   774k  0:00:01  0:00:01 --:--:--  773k
100 1031k    0    72  100 1031k     54   774k  0:00:01  0:00:01 --:--:--  773k
{"message":"Couldn't find a repository matching this job.","error":true}make[3]: Leaving directory '/home/tango/src/build'

Coverage is not visible: https://coveralls.io/github/tango-controls/cppTango

Sonar:

�[0K$ test ${SONAR_SCANNER} = "ON" && .travis/sonar.sh
Using SONAR_PROPERTIES=-Dsonar.pullrequest.base=tango-9-lts -Dsonar.pullrequest.branch=reset-database-and-ds-for-each-test -Dsonar.pullrequest.key=640
.travis/sonar.sh: line 11: sonar-scanner: command not found

I'm trying to find some hints in commit history but with no luck so far.

@t-b
Copy link
Collaborator Author

t-b commented Jan 22, 2020

@mliszcz Maybe coverage is only computed for tango-9-lts? In any case I would tackle that in a different PR.

@mliszcz
Copy link
Collaborator

mliszcz commented Jan 22, 2020

@t-b I'v just opened an issue (#661) for fixing Sonar and Coveralls.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default USE_PCH to ON and always use that for CI

3 participants