-
Notifications
You must be signed in to change notification settings - Fork 278
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
CI: rescue appveyor config from old-master and backup others #1588
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fc502a5
ci: rescue appveyor config from old-master and backup others
piponazo 1d68106
Win - Disable UNICODE which is failing at the moment
piponazo 2835384
ci: old expat & tune gtest options for windows
piponazo 247ae19
conan - gtest debug_postfix only used in Debug mode
piponazo 8f334c1
increase timeout
piponazo c87dad6
msvc: fix compiler warning on x86
piponazo 7ce5b39
appveyor: build BMFF + enable cache again
piponazo 4f2400b
cmake: ignore PDBs warnings on Win/Debug/Static buils
piponazo f249242
cmake: revert change due to old cmake versions on CentOS & debian9
piponazo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
init: | ||
- echo %PYTHON% | ||
|
||
environment: | ||
PYTHON: "C:/Python37-x64" | ||
|
||
matrix: | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
CMAKE_GENERATOR: Ninja | ||
INTEGRATION_TESTS: 1 | ||
VS_COMPILER_VERSION: 16 | ||
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat | ||
ARCHITECTURE: x86_64 | ||
UNIT_TESTS: 1 | ||
WARNINGS_AS_ERRORS: ON | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
CMAKE_GENERATOR: Ninja | ||
INTEGRATION_TESTS: 1 | ||
VS_COMPILER_VERSION: 15 | ||
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat | ||
ARCHITECTURE: x86_64 | ||
UNIT_TESTS: 1 | ||
WARNINGS_AS_ERRORS: ON | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
CMAKE_GENERATOR: Ninja | ||
INTEGRATION_TESTS: 1 | ||
VS_COMPILER_VERSION: 14 | ||
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat | ||
ARCHITECTURE: x86_64 | ||
UNIT_TESTS: 1 | ||
WARNINGS_AS_ERRORS: ON | ||
|
||
shallow_clone: true | ||
|
||
install: | ||
- set PATH=%PATH%;%PYTHON%/Scripts/ | ||
- echo %APPVEYOR_BUILD_FOLDER% | ||
- mkdir C:\projects\deps | ||
- cd C:\projects\deps | ||
- appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip -FileName ninja.zip | ||
- 7z x ninja.zip -oC:\projects\deps\ninja > nul | ||
- set PATH=C:\projects\deps\ninja;%PATH% | ||
- ninja --version | ||
- python -m pip install --upgrade pip | ||
- pip3.exe install conan==1.35.2 | ||
- pip3.exe install lxml | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
|
||
before_build: | ||
- cmd: conan remote list | ||
- cmd: conan config set storage.path=c:\Users\appveyor\conanCache | ||
- cmd: conan profile new --detect default | ||
- cmd: conan profile update settings.compiler.version=%VS_COMPILER_VERSION% default | ||
- cmd: conan profile update settings.arch=%ARCHITECTURE% default | ||
- cmd: conan profile update settings.arch_build=%ARCHITECTURE% default | ||
- cmd: cat c:\Users\appveyor\.conan\conan.conf | ||
|
||
build_script: | ||
- cmd: md build | ||
- cmd: cd build | ||
- cmd: call "%VCVARS%" x86_amd64 | ||
- cmd: conan --version | ||
- cmd: conan install .. -o webready=False --build missing | ||
- cmd: echo %CMAKE_GENERATOR% | ||
- cmd: cmake -G "%CMAKE_GENERATOR%" -DEXIV2_TEAM_WARNINGS_AS_ERRORS=%WARNINGS_AS_ERRORS% -DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_BMFF=ON -DEXIV2_ENABLE_WEBREADY=OFF -DEXIV2_BUILD_UNIT_TESTS=%UNIT_TESTS% -DCMAKE_INSTALL_PREFIX=install .. | ||
- cmd: cmake --build . --config Release | ||
- cmd: cmake --build . --config Release --target install | ||
- cmd: cd bin | ||
- cmd: if %UNIT_TESTS% == 1 unit_tests.exe | ||
- cmd: cd ../../tests/ | ||
- cmd: if %INTEGRATION_TESTS% == 1 %PYTHON%/python.exe runner.py -v | ||
- cmd: cd ../build/bin | ||
- cmd: exiv2 --version --verbose |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[General] | ||
timeout: 60.0 | ||
timeout: 240.0 | ||
memcheck: ${ENV:valgrind} | ||
|
||
[ENV] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Which CMake version are we stuck with due to older distributions?
Does it maybe make sense to move to a newer one, and simply have the older distributions download a newer version?
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.
On Debian:9 the default CMake version is 3.7 and on CentOS:8 it is 3.11.
I am the first one I would like to use the latest CMake version possible, but in practice I think this would make more difficult for distributions to include the latest Exiv2 version (need to create patches, and so on). But being honest, I am just guessing, I do not know how distribution maintainers consume and generate binaries for each of the distribution packages.
Most of the times (like this one) it is only about tiny details, and the quality of the CMake code does not get affected (too much). If we find a good excuse/reason to require a CMake higher version, we can always discuss it in a separate issue/PR 😁
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.
Sounds reasonable to me! It's always a trade-off :)
As long as it's not impacting our CMake too much I think you are right, no reason to upgrade just yet :)