2018-05-30 00:19:12 +08:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
2018-12-18 23:33:56 +08:00
|
|
|
vs_ver: 14 2015
|
2018-05-30 00:19:12 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
2018-12-18 23:33:56 +08:00
|
|
|
vs_ver: 15 2017
|
|
|
|
vs_platform: " Win64"
|
2017-09-17 00:47:04 +08:00
|
|
|
|
2015-09-07 03:30:11 +08:00
|
|
|
configuration:
|
2016-01-14 19:02:48 +08:00
|
|
|
- Release
|
2017-09-17 00:47:04 +08:00
|
|
|
|
2018-07-10 21:46:42 +08:00
|
|
|
cache:
|
2018-12-18 23:33:56 +08:00
|
|
|
- c:/Users/appveyor/.cppan/storage
|
|
|
|
|
|
|
|
# for curl
|
|
|
|
install:
|
|
|
|
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
|
|
|
|
|
2016-12-15 22:00:58 +08:00
|
|
|
before_build:
|
2018-12-18 23:33:56 +08:00
|
|
|
- curl -fsS -L -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip
|
|
|
|
- 7z x cppan.zip
|
2016-09-26 18:12:59 +08:00
|
|
|
- set PATH=%PATH%;%cd%
|
2016-12-15 21:04:18 +08:00
|
|
|
|
2018-12-18 23:33:56 +08:00
|
|
|
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
|
|
|
|
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_warning_level: 0`n"'
|
|
|
|
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
|
|
|
|
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"'
|
2018-12-18 06:21:24 +08:00
|
|
|
|
2018-12-18 23:33:56 +08:00
|
|
|
build_script:
|
|
|
|
- mkdir build
|
|
|
|
- mkdir build\bin
|
|
|
|
- mkdir build\bin\%CONFIGURATION%
|
|
|
|
- cd build
|
|
|
|
#- cmd: 'echo local_settings: > cppan.yml'
|
|
|
|
#- cmd: 'echo generator: %generator% >> cppan.yml'
|
|
|
|
#- cmd: 'echo use_shared_libs: true >> cppan.yml'
|
|
|
|
#- cppan --build ..
|
|
|
|
- cmake .. -G "Visual Studio %vs_ver%%vs_platform%"
|
|
|
|
#- cmake --build . --config %CONFIGURATION% > build\bin\%CONFIGURATION%\log.txt 2>&1
|
|
|
|
- cmake --build . --config %CONFIGURATION%
|
2016-12-21 18:18:03 +08:00
|
|
|
|
|
|
|
artifacts:
|
2018-12-18 23:33:56 +08:00
|
|
|
- path: build\bin\%CONFIGURATION%
|
|
|
|
#- path: build
|
2016-12-21 18:44:08 +08:00
|
|
|
name: tesseract-$(APPVEYOR_BUILD_VERSION)
|