-
Notifications
You must be signed in to change notification settings - Fork 81
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
Appveyor CI build config #4
Conversation
Thank you very much for your contribution! You are right that the vanilla libraries of Qt lacks our patches. The next major update of AusweisApp2 will support vanilla libraries by disabling features of AusweisApp2. It is still recommended to use our library build script since vanilla Qt/OpenSSL libraries could miss some security related patches. Since v1.12.x does not support vanilla libraries we look forward to merging your changes once v1.14.0 is released. :-) Regarding the "remaining issues": |
@misery Also build output is showing just: With remaining issues I meant that there are some issues in building the tests, see e.g.:
, better visible at https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.12.2.14/job/46cra0gk544pairn/messages maybe that is also covered by some patch. |
Yes, cmake generates a multi configuration project for Visual Studio. But we do not support a multi configuration at the moment. You are using "Configuration: Release" in your build. You need to tell that to cmake configure, too. Thats why it says "CMAKE_BUILD_TYPE: DEBUG". |
appveyor.yml
Outdated
- cd _build | ||
|
||
- ps: | | ||
cmake -G "$generator" -T "$env:PLATFORMTOOLSET" .. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add -DCMAKE_BUILD_TYPE=$env:CONFIGURATION here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the PR with the requested change.
See https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.12.4.23
See chcg@0bfee89 for the necessary adaptations to build with new version 1.14.0. Is the modification of the cmake script an viable option? Build result: |
Modification of the sources/scripts would be ok. But this change would allow compilation only. If you ran an authentication of this build it would not connect to the eID-server as the original OpenSSL 1.0.2 does not contain RSA-PSK cipher suites. Could you enable the debug build and run "ctest" for the unit tests, too? That should show the OpenSSL problem. |
Yes, this provides just a check of the compilation. See https://www.appveyor.com/docs/build-environment/#pre-installed-software, current appveyor images contain QT 5.9.2 and OpenSSL 1.0.2L for a fast result. Otherwise these two projects need to be also build and that would probably result in a hugh build time with the current free of charge access to appveyor. See https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.14.0.31 for the debug builds., appveyor.yml contains already the option for debug builds, it was just commented out. See https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.14.0.35 for a build with ctest run. Unfortunately all tests are failing. |
Thanks... looks like appveyor needs Qt env variables. This should fix the test run. set QT_PLUGIN_PATH=C:/Qt/5.9.2/msvc2015_64/plugins |
Corrected by adding C:/Qt/5.9.2/msvc2015_64/bin to the path as the test runners rely on some Qt dlls, see https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.14.0.41 with
|
Thanks! I will look into it soon. |
Issues visible with this build:
, see https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.12.2.12/job/fa7rxl8udc5e0bf9
, see https://ci.appveyor.com/project/chcg/ausweisapp2/build/1.12.2.11/job/06wicrecuugc6w7t