tesseract/appveyor.yml

41 lines
1.3 KiB
YAML
Raw Normal View History

2015-09-07 03:30:11 +08:00
os: Visual Studio 2015
platform:
- Win32
- Win64
configuration:
2016-01-14 19:02:48 +08:00
- Release
2015-09-07 03:30:11 +08:00
before_build:
2017-02-14 04:11:30 +08:00
- if %platform%==Win32 set generator=Visual Studio 14 2015
- if %platform%==Win64 set generator=Visual Studio 14 2015 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
- 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 ..
- cmake .. -G "%generator%" -DBUILD_TRAINING_TOOLS=Off -DAPPVEYOR=1
2017-03-14 16:12:40 +08:00
- cmake --build . --config Release > bin\Release\log.txt 2>&1
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)