2017-03-23 13:21:48 +08:00
|
|
|
os: Visual Studio 2017
|
2015-09-07 03:30:11 +08:00
|
|
|
|
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
- Win64
|
2017-05-07 06:03:47 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- c:/Users/appveyor/.cppan/storage
|
2015-09-07 03:30:11 +08:00
|
|
|
|
|
|
|
configuration:
|
2017-03-23 02:45:09 +08:00
|
|
|
- Release
|
|
|
|
|
2017-04-11 06:17:20 +08:00
|
|
|
# for curl
|
|
|
|
install:
|
|
|
|
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
|
2015-09-07 03:30:11 +08:00
|
|
|
|
|
|
|
before_build:
|
2017-03-23 13:21:48 +08:00
|
|
|
- if %platform%==Win32 set generator=Visual Studio 15 2017
|
|
|
|
- if %platform%==Win64 set generator=Visual Studio 15 2017 Win64
|
2015-09-07 03:30:11 +08:00
|
|
|
- if %platform%==Win32 set vcplatform=Win32
|
|
|
|
- if %platform%==Win64 set vcplatform=x64
|
2017-02-14 04:11:30 +08:00
|
|
|
|
2017-01-19 22:55:07 +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%
|
2017-02-14 04:11:30 +08:00
|
|
|
|
|
|
|
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
|
|
|
|
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"'
|
|
|
|
- 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"'
|
|
|
|
|
2015-09-07 03:30:11 +08:00
|
|
|
build_script:
|
|
|
|
- mkdir build
|
2017-03-14 16:12:40 +08:00
|
|
|
- mkdir build\bin
|
|
|
|
- mkdir build\bin\Release
|
2015-09-07 03:30:11 +08:00
|
|
|
- cd build
|
2017-02-14 04:11:30 +08:00
|
|
|
#- cmd: 'echo local_settings: > cppan.yml'
|
|
|
|
#- cmd: 'echo generator: %generator% >> cppan.yml'
|
|
|
|
#- cmd: 'echo use_shared_libs: true >> cppan.yml'
|
|
|
|
#- cppan --build ..
|
2017-05-07 06:03:47 +08:00
|
|
|
- cmake .. -G "%generator%"
|
|
|
|
- cmake --build . --config Release
|
2017-02-14 04:11:30 +08:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build\bin\Release
|
|
|
|
#- path: build
|
2017-03-14 16:12:40 +08:00
|
|
|
name: tesseract-$(APPVEYOR_BUILD_VERSION)
|
2017-03-23 06:23:07 +08:00
|
|
|
|