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