diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..32341e9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +language: cpp + +sudo: false + +addons: + apt: + packages: + - liblog4cpp5-dev + +compiler: + - gcc + - clang + +before_install: + - echo $LANG + - echo $LC_ALL + - if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libconfig log4cpp; fi + +install: + - curl -L https://github.com/nukedzn/psocksxx/releases/download/v1.0.0/psocksxx-1.0.0.tar.gz | tar -zx -C /tmp + - cd /tmp/psocksxx-* && ./configure --prefix=/tmp/root && make && make install + - if [ $TRAVIS_OS_NAME == linux ]; then curl -L http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz | tar -zx -C /tmp; fi + - if [ $TRAVIS_OS_NAME == linux ]; then cd /tmp/libconfig-* && ./configure --prefix=/tmp/root && make && make install; fi + - cd ${TRAVIS_BUILD_DIR} + +before_script: + - if [ $TRAVIS_OS_NAME == linux ]; then libtoolize; fi + - if [ $TRAVIS_OS_NAME == osx ]; then glibtoolize; fi + - aclocal + - autoheader + - autoconf + - automake --add-missing + - export PKG_CONFIG_PATH=/tmp/root/lib/pkgconfig && ./configure + +script: + - make distcheck + +os: + - linux + - osx + |