Skip to content

Commit

Permalink
ci: add travis and appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Jun 24, 2017
1 parent c33f2ea commit 53ff610
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 3 deletions.
61 changes: 61 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
language: c

os:
- linux
- osx

sudo: required
dist: trusty

compiler:
- clang
- gcc

matrix:
fast_finish: true
exclude:
# Skip GCC builds on macOS.
- os: osx
compiler: gcc
include:
# Additional GCC builds for code coverage.
- os: linux
compiler: gcc
env: CODE_COVERAGE=ON

cache:
apt: true

addons:
apt:
packages:
- clang-3.6
- lcov

branches:
only:
- master

before_install:
- pip install --user cpp-coveralls

script:
- sh ./build-deps.sh
- sh ./autogen.sh
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
./configure CFLAGS="-ftest-coverage -fprofile-arcs";
else
./configure;
fi
- make
- make check

after_success:
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
coveralls
--build-root .
--exclude lib
--exclude test
--gcov-options '\-lp'
--verbose;
fi
7 changes: 7 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
image: Visual Studio 2017

build_script:
- ps: >-
cd win
.\build.bat
6 changes: 3 additions & 3 deletions win/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!cglm.sln
!cglm.vcxproj
!cglm.vcxproj.filters
!libds.sln
!libds.vcxproj
!libds.vcxproj.filters
!packages.config

0 comments on commit 53ff610

Please sign in to comment.