summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: c04a31948b1af58b78f649f0b6d07feb7f8b4ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: cpp

sudo: false

compiler:
  - gcc
  - clang

before_install:
  - echo $LANG
  - echo $LC_ALL
  - if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libconfig; fi

install:
  - curl -L https://github.com/nukedzn/psocksxx/releases/download/v1.1.1/psocksxx-1.1.1.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/packages/libconfig-1.4.10.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