mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Move travis to use a new version of Ubuntu
This commit is contained in:
parent
8bb1a90c4f
commit
ef9a63e610
@ -1,4 +1,4 @@
|
|||||||
dist: trusty
|
dist: bionic
|
||||||
sudo: true
|
sudo: true
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
@ -9,7 +9,6 @@ addons:
|
|||||||
- libgeoip-dev
|
- libgeoip-dev
|
||||||
- liblua5.2-dev
|
- liblua5.2-dev
|
||||||
- liblmdb-dev
|
- liblmdb-dev
|
||||||
- cppcheck
|
|
||||||
|
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
@ -38,9 +37,12 @@ before_script:
|
|||||||
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install libmaxminddb'
|
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install libmaxminddb'
|
||||||
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install lmdb'
|
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install lmdb'
|
||||||
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository --yes ppa:maxmind/ppa'
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository --yes ppa:maxmind/ppa'
|
||||||
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository --yes ppa:grochefort/cppcheck'
|
||||||
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get update'
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get update'
|
||||||
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-cache search maxmind'
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-cache search maxmind'
|
||||||
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get install -y libmaxminddb-dev'
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get install -y libmaxminddb-dev'
|
||||||
|
- '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get install -y cppcheck'
|
||||||
|
- '[ "$TRAVIS_OS_NAME" != linux ] || cppcheck --version'
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
|
@ -64,7 +64,9 @@ cppcheck:
|
|||||||
--template="warning: {file},{line},{severity},{id},{message}" \
|
--template="warning: {file},{line},{severity},{id},{message}" \
|
||||||
-I headers -I . -I others -I src -I others/mbedtls -I src/parser \
|
-I headers -I . -I others -I src -I others/mbedtls -I src/parser \
|
||||||
--error-exitcode=1 \
|
--error-exitcode=1 \
|
||||||
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
|
-i "src/parser/seclang-parser.cc" \
|
||||||
|
-i "src/parser/seclang-scanner.cc" \
|
||||||
|
-i "parser/driver.cc" \
|
||||||
--force --verbose .
|
--force --verbose .
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user