language: c
os:
 - osx
 - linux
compiler:
  - gcc
  - clang
env:
  - WREN_OPTIONS="" CI_ARCHS="ci_32 ci_64"
  - WREN_OPTIONS="-DWREN_NAN_TAGGING=0" CI_ARCHS="ci_64"
# Travis VMs are 64-bit but we compile both for 32 and 64 bit. To enable the
# 32-bit builds to work, we need gcc-multilib.
addons:
  apt:
    packages:
    - gcc-multilib
    - g++-multilib
sudo: false # Enable container-based builds.
script: make WREN_CFLAGS=${WREN_OPTIONS} ${CI_ARCHS}
