Skip to content

Commit 20104ce

Browse files
adrianbroherrillian
authored andcommitted
Add cmake as optional build system to Travis-CI configuration
1 parent 0b7e73a commit 20104ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ compiler:
66

77
env:
88
- BUILD_SYSTEM=AUTOTOOLS
9+
- BUILD_SYSTEM=CMAKE
10+
11+
matrix:
12+
allow_failures:
13+
- env: BUILD_SYSTEM=CMAKE
914

1015
addons:
1116
apt:
@@ -16,3 +21,8 @@ script:
1621
- if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
1722
- if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./configure ; fi
1823
- if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then make -j2 V=1 distcheck ; fi
24+
- if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then mkdir build ; fi
25+
- if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then pushd build ; fi
26+
- if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. ; fi
27+
- if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then cmake --build . ; fi
28+
- if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then popd ; fi

0 commit comments

Comments
 (0)