mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
Add tests for cmake builds and use on travis.
This commit is contained in:
parent
7f9db87f30
commit
62fa209eeb
16
.travis.yml
16
.travis.yml
@ -2,12 +2,22 @@ language: c
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
script: make ; make test
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- os: osx
|
||||
|
||||
script:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make ; make test ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake . ; make ; make test ; fi
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y debhelper libc-ares-dev libssl-dev libwrap0-dev python-all python3-all uthash-dev uuid-dev libuuid1 xsltproc docbook-xsl
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y debhelper libc-ares-dev libssl-dev libwrap0-dev python-all python3-all uthash-dev uuid-dev libuuid1 xsltproc docbook-xsl ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install c-ares openssl libwebsockets ; fi
|
||||
|
||||
|
@ -93,3 +93,8 @@ add_subdirectory(man)
|
||||
# ========================================
|
||||
|
||||
install(FILES mosquitto.conf aclfile.example pskfile.example pwfile.example DESTINATION ${SYSCONFDIR})
|
||||
|
||||
# ========================================
|
||||
# Testing
|
||||
# ========================================
|
||||
add_custom_target(Tests COMMAND make -C test test)
|
||||
|
Loading…
x
Reference in New Issue
Block a user