language: C
dist: trusty
sudo: required

os:
  - linux
  - osx

# Use aptitude/dpkg to force-install 32-bit versions of tcl/tk dev.
before_install: |
  if [[ "$TRAVIS_OS_NAME" == "linux" ]]
  then
    sudo dpkg --add-architecture i386
    sudo apt-get -yq update
    sudo apt-get -yq install gcc-multilib
    sudo aptitude -yq install tcl-dev:i386
    sudo aptitude -yq install libtk8.6:i386
    apt-get download tk8.6-dev:i386 tk-dev:i386
    sudo dpkg -i --force-all *.deb
  fi

script:
  - cd unix && make && make test

language: C
dist: trusty
sudo: required

os:
  - linux
  - osx

# Use aptitude/dpkg to force-install 32-bit versions of tcl/tk dev.
before_install: |
  if [[ "$TRAVIS_OS_NAME" == "linux" ]]
  then
    sudo dpkg --add-architecture i386
    sudo apt-get -yq update
    sudo apt-get -yq install gcc-multilib
    sudo aptitude -yq install tcl-dev:i386
    sudo aptitude -yq install libtk8.6:i386
    sudo aptitude -yq install libcurl4-openssl-dev:i386
    sudo apt-get -yq install php5
    apt-get download tk8.6-dev:i386 tk-dev:i386
    sudo dpkg -i --force-all *.deb
    export CFLAGS=--std=gnu99
  fi

script:
  - cd unix && make && make test

Add libcurl, PHP packages and adjust C environment
Add libcurl, PHP packages and adjust C environment

The new bcurl is written in C99, whereas Trusty defaults to C89, so a C flag is added
to compile C99.
