Skip to content

Commit 6edf10c

Browse files
committed
Merge pull request #294 from redboltz/support_appveyor
Supported appveyor.
2 parents 1790062 + d88d6c3 commit 6edf10c

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
`msgpack` for C/C++
22
===================
33

4-
Version 1.1.0 [![Build Status](https://travis-ci.org/msgpack/msgpack-c.svg?branch=master)](https://travis-ci.org/msgpack/msgpack-c)
4+
Version 1.1.0 [![Build Status](https://travis-ci.org/msgpack/msgpack-c.svg?branch=master)](https://travis-ci.org/msgpack/msgpack-c) [![Build status](https://ci.appveyor.com/api/projects/status/8kstcgt79qj123mw/branch/master?svg=true)](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/master)
55

66
It's like JSON but small and fast.
77

appveyor.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 1.1.0.{build}
2+
before_build:
3+
- cinst 7zip.commandline -x86 -y
4+
- appveyor DownloadFile http://googletest.googlecode.com/files/gtest-1.7.0.zip -FileName gtest-1.7.0.zip
5+
- 7z x gtest-1.7.0.zip > NUL
6+
- cd gtest-1.7.0
7+
- md build
8+
- cd build
9+
- cmake -DBUILD_SHARED_LIBS=ON ..
10+
- cmake --build . --config Release
11+
- cd ..
12+
- cd ..
13+
- appveyor DownloadFile http://zlib.net/zlib-1.2.8.tar.gz -FileName zlib-1.2.8.tar.gz
14+
- 7z x zlib-1.2.8.tar.gz > NUL
15+
- 7z x zlib-1.2.8.tar > NUL
16+
- cd zlib-1.2.8
17+
- md build
18+
- cd build
19+
- cmake ..
20+
- cmake --build . --config Release
21+
- copy zconf.h ..
22+
- cd ..
23+
- cd ..
24+
25+
build_script:
26+
- md build
27+
- cd build
28+
- cmake -DGTEST_LIBRARY=%APPVEYOR_BUILD_FOLDER%\gtest-1.7.0\build\Release\gtest.lib -DGTEST_MAIN_LIBRARY=%APPVEYOR_BUILD_FOLDER%\gtest-1.7.0\build\Release\gtest_main.lib -DGTEST_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\gtest-1.7.0\include -DZLIB_LIBRARY=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8\build\Release\zlib.lib -DZLIB_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8 ..
29+
- cmake --build . --config Release
30+
31+
test_script:
32+
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\gtest-1.7.0\build\Release;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release
33+
- ctest -V

0 commit comments

Comments
 (0)