2015-09-07 03:30:11 +08:00
|
|
|
os: Visual Studio 2015
|
|
|
|
|
|
|
|
platform:
|
2016-12-19 05:22:57 +08:00
|
|
|
- Win32
|
2015-09-07 03:30:11 +08:00
|
|
|
- Win64
|
|
|
|
|
|
|
|
configuration:
|
2016-01-14 19:02:48 +08:00
|
|
|
- Release
|
2015-09-07 03:30:11 +08:00
|
|
|
|
2016-12-15 22:00:58 +08:00
|
|
|
before_build:
|
2015-09-07 03:30:11 +08:00
|
|
|
- if %platform%==Win32 set generator=Visual Studio 14
|
|
|
|
- if %platform%==Win64 set generator=Visual Studio 14 Win64
|
|
|
|
- if %platform%==Win32 set vcplatform=Win32
|
|
|
|
- if %platform%==Win64 set vcplatform=x64
|
2016-12-15 21:04:18 +08:00
|
|
|
|
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"'
|
2016-12-19 05:22:57 +08:00
|
|
|
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
|
2016-12-19 04:30:36 +08:00
|
|
|
|
2015-09-07 03:30:11 +08:00
|
|
|
build_script:
|
2016-09-26 18:12:59 +08:00
|
|
|
- cppan
|
2015-09-07 03:30:11 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-12-26 22:36:03 +08:00
|
|
|
- cmake .. -G "%generator%" -DBUILD_TRAINING_TOOLS=Off -DAPPVEYOR=1
|
2016-12-17 23:11:06 +08:00
|
|
|
- cmake --build . --config Release
|
2016-12-21 18:18:03 +08:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build\bin\Release
|
2016-12-21 18:44:08 +08:00
|
|
|
name: tesseract-$(APPVEYOR_BUILD_VERSION)
|