31 lines
908 B
YAML
31 lines
908 B
YAML
language: c
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
|
|
install:
|
|
# for unit tests
|
|
- sudo apt-get install -y check
|
|
# for static code analysis
|
|
- sudo apt-get install -y cppcheck rats
|
|
# for test code coverage
|
|
- sudo apt-get install -y lcov
|
|
- gem install coveralls-lcov
|
|
|
|
before_script:
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
- lcov --directory . --zerocounters
|
|
|
|
script:
|
|
# - find . -type f -name "*.c" -print | grep -v t\/ | xargs cppcheck 2>&1
|
|
# - find . -type f -name "*.c" -print | grep -v t\/ | xargs rats --language=c
|
|
- git clone --depth 10 https://github.com/proftpd/proftpd.git
|
|
- cp mod_proxy_protocol.c proftpd/contrib/
|
|
- cd proftpd
|
|
- ./configure LIBS="-lm -lrt -pthread" --enable-devel=coverage --enable-tests --with-module=mod_proxy_protocol
|
|
- make
|
|
- make clean
|
|
- ./configure LIBS="-lm -lrt -pthread" --enable-devel=coverage --enable-dso --enable-tests --with-shared=mod_proxy_protocol
|
|
- make
|