-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from Nzbuu/ci_build
Add build scripts for CI platforms
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: cpp | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
before_install: | ||
- echo $LANG | ||
- echo $LC_ALL | ||
|
||
install: | ||
- sh autogen.sh | ||
|
||
before_script: | ||
- ./configure | ||
|
||
script: | ||
- make | ||
|
||
after_success: | ||
- make check |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: '{branch}.{build}' | ||
os: Windows Server 2012 R2 | ||
|
||
configuration: | ||
- Debug | ||
- Release | ||
platform: x64 | ||
environment: | ||
matrix: | ||
- PlatformToolset: v140 | ||
- PlatformToolset: v120 | ||
- PlatformToolset: Windows7.1SDK | ||
|
||
build_script: | ||
- > | ||
msbuild "json-c.vcxproj" /m /verbosity:normal | ||
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
/p:PlatformToolset=%PlatformToolset% /p:OutDir=lib\ | ||
after_build: | ||
- md include\json-c | ||
- copy json.h include\json-c\* | ||
- copy debug.h include\json-c\* | ||
- copy linkhash.h include\json-c\* | ||
- copy arraylist.h include\json-c\* | ||
- copy json_util.h include\json-c\* | ||
- copy json_object.h include\json-c\* | ||
- copy json_tokener.h include\json-c\* | ||
- copy json_object_iterator.h include\json-c\* | ||
- copy json_c_version.h include\json-c\* | ||
- copy json_inttypes.h include\json-c\* | ||
- copy json_config.h include\json-c\* | ||
- copy json_object_private.h include\json-c\* | ||
- 7z a json-c.lib.zip lib\json-c.lib include\json-c\*.h | ||
|
||
artifacts: | ||
- path: json-c.lib.zip | ||
name: json-c.lib.zip |