-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
71 additions
and
3 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,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 |
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,7 @@ | ||
image: Visual Studio 2017 | ||
|
||
build_script: | ||
- ps: >- | ||
cd win | ||
.\build.bat |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
!cglm.sln | ||
!cglm.vcxproj | ||
!cglm.vcxproj.filters | ||
!libds.sln | ||
!libds.vcxproj | ||
!libds.vcxproj.filters | ||
!packages.config |