-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,28 @@ | ||
environment: | ||
matrix: | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
vs_ver: 14 2015 | ||
platform: Win32 | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
vs_ver: 15 2017 | ||
vs_platform: " Win64" | ||
platform: Win64 | ||
|
||
configuration: | ||
- Release | ||
|
||
cache: | ||
- c:/Users/appveyor/.cppan/storage | ||
|
||
# for curl | ||
install: | ||
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH% | ||
- c:/Users/appveyor/.sw | ||
- .sw | ||
|
||
before_build: | ||
- curl -fsS -L -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip | ||
- 7z x cppan.zip | ||
- curl -fsS -L -o dl.zip https://github.com/SoftwareNetwork/binaries/raw/master/client_windows.zip | ||
- 7z x dl.zip | ||
- set PATH=%PATH%;%cd% | ||
|
||
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml | ||
- 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"' | ||
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"' | ||
|
||
build_script: | ||
- mkdir build | ||
- mkdir build\bin | ||
- mkdir build\bin\%CONFIGURATION% | ||
- cd build | ||
#- cmd: 'echo local_settings: > cppan.yml' | ||
#- cmd: 'echo generator: %generator% >> cppan.yml' | ||
#- cmd: 'echo use_shared_libs: true >> cppan.yml' | ||
#- cppan --build .. | ||
- cmake .. -G "Visual Studio %vs_ver%%vs_platform%" | ||
#- cmake --build . --config %CONFIGURATION% > build\bin\%CONFIGURATION%\log.txt 2>&1 | ||
- cmake --build . --config %CONFIGURATION% | ||
- sw -platform %platform% build | ||
|
||
after_build: | ||
- 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.dll | ||
|
||
artifacts: | ||
- path: build\bin\%CONFIGURATION% | ||
#- path: build | ||
- path: tesseract.zip | ||
name: tesseract-$(APPVEYOR_BUILD_VERSION) |
7732f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egorpugin, I just had a look at the Appveyor build protocols to see the compiler warnings. Are they still available somewhere? The build protocol no longer shows them.
7732f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added an option, let's see how it goes.