Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ZLIB DATA COMPRESSION LIBRARY

[![AppVeyor CI status][appveyor-shield]][appveyor-link]

zlib 1.2.11.1 is a general purpose data compression library. All the code is
thread safe. The data format used by the zlib library is described by RFCs
(Request for Comments) 1950 to 1952 in the files
Expand Down Expand Up @@ -102,8 +104,7 @@ Copyright notice:
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Jean-loup Gailly Mark Adler
jloup@gzip.org madler@alumni.caltech.edu
Jean-loup Gailly (jloup@gzip.org) & Mark Adler (madler@alumni.caltech.edu)

If you use the zlib library in a product, we would appreciate *not* receiving
lengthy legal documents to sign. The sources are provided for free but without
Expand All @@ -116,3 +117,6 @@ any third parties.
If you redistribute modified sources, we would appreciate that you include in
the file ChangeLog history information documenting your changes. Please read
the FAQ for more information on the distribution of modified source versions.

[appveyor-shield]: https://ci.appveyor.com/api/projects/status/8m7p0nbuy8tvkqv6/branch/add-appveyor?svg=true
[appveyor-link]: https://ci.appveyor.com/project/ProgramMax/zlib/branch/develop
34 changes: 34 additions & 0 deletions ci/appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 1.2.11.1.{build}

pull_requests:
do_not_increment_build_number: true

shallow_clone: true

image:
- Visual Studio 2019

before_build:
- cmd: cmake .

build:
project: "zlib.sln"

platform:
- x64
configuration:
- Debug
- Release

# &"$($env:APPVEYOR_BUILD_FOLDER)\$($env:CONFIGURATION)\example.exe"
test_script:
- ps: |
$env:ZLIB_JUNIT_OUTPUT_FILE = "$($env:APPVEYOR_BUILD_FOLDER)\$($env:CONFIGURATION)\junit-results.xml"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alas, this assumes that cmake only runs one test executable. This fails on Linux, where cmake runs both example and example64; the junit output of both must be uploaded. Perhaps we need a cmake option to turn on junit output, and use that to control passing the --junit flag to the test programs. I can give that a shot.

&"ctest"
$testError = $LastExitCode
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path "$($env:ZLIB_JUNIT_OUTPUT_FILE)"))
if ($testError -ne 0)
{
throw $testError
}
Loading