summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 1f768f6d103764cce5ec82fe9357734a8f214ee5 (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
language: c

os:
  - linux
  - osx

compiler:
  - clang
  - gcc

# when https://github.com/travis-ci/apt-package-whitelist/issues/792 is closed, use the container-based infrastructure
#sudo: false
#addons:
#  apt:
#    packages:
#    - mlton

before_install:
  - export CONFIGURE_ARGS=""
  - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi
  - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton libicu-dev; fi
  - if command -v brew &>/dev/null; then brew update; fi
  - if command -v brew &>/dev/null; then brew uninstall libtool; fi
  - if command -v brew &>/dev/null; then brew install libtool; fi
  - if command -v brew &>/dev/null; then brew install openssl mlton icu4c; fi
  - if command -v brew &>/dev/null; then export ICU_INCLUDES=-I"`brew --prefix icu4c`/include"; fi
  - if command -v brew &>/dev/null; then export ICU_LIBS=-L"`brew --prefix icu4c`/lib"; fi
  - if command -v brew &>/dev/null; then export CONFIGURE_ARGS="--with-openssl=/usr/local/opt/openssl"; fi


script: ./autogen.sh && ./configure $CONFIGURE_ARGS && make && make test