Skip to content

Commit cab370d

Browse files
committed
ci: add travis and appveyor
1 parent 7610706 commit cab370d

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.travis.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
language: c
2+
3+
os:
4+
- linux
5+
- osx
6+
7+
sudo: required
8+
dist: trusty
9+
10+
compiler:
11+
- clang
12+
- gcc
13+
14+
matrix:
15+
fast_finish: true
16+
exclude:
17+
# Skip GCC builds on macOS.
18+
- os: osx
19+
compiler: gcc
20+
include:
21+
# Additional GCC builds for code coverage.
22+
- os: linux
23+
compiler: gcc
24+
env: CODE_COVERAGE=ON
25+
26+
cache:
27+
apt: true
28+
29+
addons:
30+
apt:
31+
packages:
32+
- clang-3.6
33+
- lcov
34+
35+
branches:
36+
only:
37+
- master
38+
39+
before_install:
40+
- pip install --user cpp-coveralls
41+
42+
script:
43+
- sh ./build-deps.sh
44+
- sh ./autogen.sh
45+
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
46+
./configure CFLAGS="-ftest-coverage -fprofile-arcs";
47+
else
48+
./configure;
49+
fi
50+
- make
51+
- make check
52+
53+
after_success:
54+
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
55+
coveralls
56+
--build-root .
57+
--exclude lib
58+
--exclude test
59+
--gcov-options '\-lp'
60+
--verbose;
61+
fi

appveyor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build_script:
2+
- ps: >-
3+
cd win
4+
5+
.\build.bat
6+

0 commit comments

Comments
 (0)