Having Travis working again

This commit is contained in:
Felipe Zimmerle 2021-01-14 10:38:24 -03:00
parent f948d637f2
commit b3cfd88819
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -11,6 +11,14 @@ addons:
- liblmdb-dev - liblmdb-dev
- cppcheck - cppcheck
homebrew:
packages:
- cppcheck
- libmaxminddb
- lmdb
- yajl
update: true
language: cpp language: cpp
compiler: compiler:
@ -21,6 +29,8 @@ os:
- linux - linux
- osx - osx
osx_image: xcode12
env: env:
- OPTS="--enable-parser-generation $OPTS" - OPTS="--enable-parser-generation $OPTS"
- OPTS="--without-curl $OPTS" - OPTS="--without-curl $OPTS"
@ -31,17 +41,15 @@ env:
- OPTS="--without-lua $OPTS" - OPTS="--without-lua $OPTS"
- OPTS="--without-maxmind $OPTS" - OPTS="--without-maxmind $OPTS"
before_script: before_script:
- echo $TRAVIS_OS_NAME - echo $TRAVIS_OS_NAME
- '[ "$TRAVIS_OS_NAME" != osx ] || brew update'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install cppcheck'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install libmaxminddb'
- '[ "$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 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'
script: script:
- ./build.sh - ./build.sh
- ./configure $OPTS - ./configure $OPTS