We suddenly started to have some linking issues in the 0.27 branch after the libcurl packages were updated in the conan-center repositories. After some experimentation I took the following steps to fix up the situation: - Update conan to latest version - Update of libcurl to the latest version available - Use libcurl static libraries Note that the change to use static libraries is just to make the deployment step as easier as possible in the travis builds.
91 lines
3.6 KiB
YAML
91 lines
3.6 KiB
YAML
environment:
|
|
matrix:
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
CMAKE_GENERATOR: Visual Studio 10 2010
|
|
INTEGRATION_TESTS: 0
|
|
VS_COMPILER_VERSION: 10
|
|
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
|
|
ARCHITECTURE: x86
|
|
UNIT_TESTS: 0
|
|
WARNINGS_AS_ERRORS: OFF
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
CMAKE_GENERATOR: Visual Studio 11 2012 Win64
|
|
INTEGRATION_TESTS: 0
|
|
VS_COMPILER_VERSION: 11
|
|
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat
|
|
ARCHITECTURE: x86_64
|
|
UNIT_TESTS: 1
|
|
WARNINGS_AS_ERRORS: ON
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
CMAKE_GENERATOR: Visual Studio 12 2013 Win64
|
|
INTEGRATION_TESTS: 0
|
|
VS_COMPILER_VERSION: 12
|
|
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
|
|
ARCHITECTURE: x86_64
|
|
UNIT_TESTS: 1
|
|
WARNINGS_AS_ERRORS: ON
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
CMAKE_GENERATOR: Visual Studio 14 2015 Win64
|
|
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
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
CMAKE_GENERATOR: Visual Studio 15 2017 Win64
|
|
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
|
|
|
|
shallow_clone: true
|
|
|
|
install:
|
|
- echo %APPVEYOR_BUILD_FOLDER%
|
|
- mkdir C:\projects\deps
|
|
- cd C:\projects\deps
|
|
- appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip -FileName ninja.zip
|
|
- 7z x ninja.zip -oC:\projects\deps\ninja > nul
|
|
- set PATH=C:\projects\deps\ninja;%PATH%
|
|
- ninja --version
|
|
|
|
before_build:
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%
|
|
- cmd: if not exist envs mkdir envs
|
|
- cmd: cd envs
|
|
- cmd: python -m virtualenv conan
|
|
- cmd: conan/Scripts/activate
|
|
- cmd: python -m pip install conan==1.11.2 # TODO: Update to latest version (needs python 3)
|
|
- cmd: cd ..
|
|
- cmd: conan --version
|
|
- cmd: conan remote add conan-bincrafters https://api.bintray.com/conan/bincrafters/public-conan
|
|
- 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 install .. -o webready=True --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_WEBREADY=ON -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: set EXIV2_EXT=.exe
|
|
- cmd: if %INTEGRATION_TESTS% == 1 c:\Python36\python.exe runner.py -v
|
|
|
|
cache:
|
|
- envs # Conan installation
|
|
- c:\Users\appveyor\conanCache # Conan cache
|