summaryrefslogtreecommitdiff
path: root/tools/travis-ci.sh
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-17 12:49:48 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-17 12:49:48 +0200
commitb9e11915a976daaf790ebc763aff56e19fd49e0f (patch)
tree7c69dc9427a8a0470ff12f772846b956e747bf78 /tools/travis-ci.sh
parentf9fd78c01623514a060c607534fc52cb73140200 (diff)
parentc7a26bc21629ddd4103dac1ff7f9acf45a2c4d35 (diff)
Merge insp20
Diffstat (limited to 'tools/travis-ci.sh')
-rwxr-xr-xtools/travis-ci.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/travis-ci.sh b/tools/travis-ci.sh
new file mode 100755
index 000000000..8828532b0
--- /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
+ brew link sqlite3 --force
+else
+ >&2 echo "'$TRAVIS_OS_NAME' is an unknown Travis CI environment!"
+ exit 1
+fi
+set -e
+export TEST_BUILD_MODULES="m_geoip.cpp,m_ldap.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"
+./tools/test-build $CXX
+./run/bin/inspircd --version