Skip to content

Commit

Permalink
Add CI config files
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Apr 4, 2016
1 parent f46d529 commit ac31b83
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .travis.yml
@@ -0,0 +1,29 @@
language: c

sudo: required
dist: trusty

os:
- linux
- osx

compiler:
- gcc
- clang

addons:
apt:
packages:
- ninja-build

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi

install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi

script:
- scripts/initbuild.sh ninja
- scripts/test.sh
- scripts/initbuild.sh make-concurrent
- scripts/test.sh
5 changes: 4 additions & 1 deletion README.md
@@ -1,4 +1,7 @@
# FlatCC FlatBuffers interface for C
OS-X & Ubuntu: [![Build Status](https://travis-ci.org/dvidelabs/flatcc.svg?branch=master)](https://travis-ci.org/dvidelabs/flatcc)
Windows: [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/dvidelabs/flatcc?branch=master&svg=true)](https://ci.appveyor.com/project/dvidelabs/flatcc)

# FlatCC FlatBuffers in C for C

NOTE: see
[CHANGELOG](https://github.com/dvidelabs/flatcc/blob/master/CHANGELOG.md),
Expand Down
38 changes: 38 additions & 0 deletions appveyor.yml
@@ -0,0 +1,38 @@
version: "win#{build}"

image: Visual Studio 2015

init:
- git config --global core.autocrlf input
- cmake --version
- msbuild /version

shallow_clone: true

clone_folder: c:\projects\flatcc

platform:
- Win32
- x64

configuration:
- Debug
- Release

skip_tags: true

before_build:
- echo Running cmake...
- cd c:\projects\flatcc
- mkdir build\MSVC
- cd build\MSVC
- if "%platform%"=="Win32" cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=%configuration% ..\..
- if "%platform%"=="x64" cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=%configuration% ..\..

build:
parallel: true # enable MSBuild parallel builds
project: c:\projects\flatcc\build\MSVC\FlatCC.sln

test_script:
- ctest -C "%configuration%" -VV

0 comments on commit ac31b83

Please sign in to comment.