From b198b696c8c713949ede6a900646482112e5daf4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 10 Oct 2014 15:24:05 +0100 Subject: Add configuration for building with Travis-CI. --- tools/travis-ci.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/travis-ci.sh (limited to 'tools') diff --git a/tools/travis-ci.sh b/tools/travis-ci.sh new file mode 100755 index 000000000..6fb6f22ca --- /dev/null +++ b/tools/travis-ci.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -v +if [ "$TRAVIS_OS_NAME" = "linux" ] +then + sudo apt-get update --assume-yes + sudo apt-get install --assume-yes libgeoip-dev libgnutls-dev libldap2-dev libmysqlclient-dev libpcre3-dev libpq-dev libsqlite3-dev libssl-dev libtre-dev +elif [ "$TRAVIS_OS_NAME" = "osx" ] +then + brew update + brew install geoip gnutls mysql-connector-c openssl pcre postgresql sqlite3 tre +else + >&2 echo "'$TRAVIS_OS_NAME' is an unknown Travis CI environment!" + exit 1 +fi +set -e +./configure --enable-extras=m_geoip.cpp,m_ldapauth.cpp,m_ldapoper.cpp,m_mysql.cpp,m_pgsql.cpp,m_regex_pcre.cpp,m_regex_posix.cpp,m_regex_tre.cpp,m_sqlite3.cpp,m_ssl_gnutls.cpp,m_ssl_openssl.cpp +./configure --with-cc=$CXX +make -j4 install +./run/bin/inspircd --version -- cgit v1.2.3 From fe3b48692af9d633da2e92b581f5ad859788f423 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 28 Jul 2016 15:32:13 +0100 Subject: Force link sqlite3 on OS X when doing Travis builds. The system version of this library does not include support for pkg-config. --- tools/travis-ci.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/travis-ci.sh b/tools/travis-ci.sh index 6fb6f22ca..6dbc82300 100755 --- a/tools/travis-ci.sh +++ b/tools/travis-ci.sh @@ -8,6 +8,7 @@ elif [ "$TRAVIS_OS_NAME" = "osx" ] then brew update brew install geoip gnutls mysql-connector-c openssl pcre postgresql sqlite3 tre + brew link sqlite3 --force else >&2 echo "'$TRAVIS_OS_NAME' is an unknown Travis CI environment!" exit 1 -- cgit v1.2.3