tesseract/appveyor.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2017-03-23 04:33:20 +08:00
os: Visual Studio 2017
2015-09-07 03:30:11 +08:00
platform:
2016-12-19 05:22:57 +08:00
- Win32
2015-09-07 03:30:11 +08:00
- Win64
cache:
2017-05-06 17:52:13 +08:00
- c:/Users/appveyor/.cppan/storage
2015-09-07 03:30:11 +08:00
configuration:
2016-01-14 19:02:48 +08:00
- Release
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:
2017-03-23 05:51:58 +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
2016-12-27 06:18:27 +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%
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"'
2016-12-19 04:30:36 +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
- mkdir build\bin\Release
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 ..
- cmake .. -G "%generator%" -DBUILD_TRAINING_TOOLS=Off -DAPPVEYOR=1
#- cmake --build . --config Release > bin\Release\log.txt 2>&1
- cmake --build . --config Release
2016-12-21 18:18:03 +08:00
artifacts:
2017-01-12 17:24:33 +08:00
- path: build\bin\Release
#- path: build
2016-12-21 18:44:08 +08:00
name: tesseract-$(APPVEYOR_BUILD_VERSION)
2017-01-12 08:17:26 +08:00