-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (30 loc) · 991 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: c
compiler:
- gcc
- clang
install:
- sudo apt-get update -qq
# for winbind support
- sudo apt-get install -y libwbclient-dev
# 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 50 https://github.com/proftpd/proftpd.git
- cp mod_winbind.c proftpd/contrib/
- cd proftpd
- ./configure --enable-devel=coverage --enable-dso --enable-tests --with-shared=mod_winbind
- make
- make clean
- ./configure --enable-devel=coverage --enable-tests --with-modules=mod_winbind
- make
# Run `tidy -e -q mod_winbind.html` for doc validation