Skip to content

Commit 681484e

Browse files
committed
Travis: test with CMake & configure
1 parent ee6be27 commit 681484e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ compiler:
88
- gcc
99
- clang
1010

11+
env:
12+
- CONFIGURE_CMD=configure
13+
- CONFIGURE_CMD=cmake
14+
1115
script:
12-
- mkdir -p build
13-
- cd build
14-
- cmake -DCMAKE_C_COMPILER="${CC}" ..
16+
- if [[ $CONFIGURE_CMD == 'configure' ]]; then export CC=${CC} && ./configure && make ; fi
17+
- if [[ $CONFIGURE_CMD == 'cmake' ]]; then mkdir -p build && cd build && cmake -DCMAKE_C_COMPILER="${CC}" .. ; fi
1518
- make
1619

0 commit comments

Comments
 (0)