forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
47 lines (42 loc) · 1.68 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: Visual Studio 2015
shallow_clone: true
install:
- set PROJECT_DIR=%cd%
- echo %PROJECT_DIR%
- 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 %PROJECT_DIR%
- 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.3.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: cat c:\Users\appveyor\.conan\conan.conf
- cmd: mkdir c:\Users\appveyor\.conan\profiles
build_script:
- cmd: md build
- cmd: cd build
- cmd: conan install .. --build missing
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- cmd: cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=ON -DEXIV2_BUILD_UNIT_TESTS=ON -DCMAKE_INSTALL_PREFIX=install ..
- cmd: ninja
- cmd: ninja install
- cmd: cd bin
- cmd: unit_tests.exe
- cmd: cd ../../tests/
- cmd: set EXIV2_EXT=.exe
- cmd: c:\Python36\python.exe runner.py -v
cache:
- envs # Conan installation
- c:\Users\appveyor\conanCache # Conan cache