machine:
  environment:
    CXX: g++-4.8
    CC: gcc-4.8

dependencies:
  pre:
        - "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi"
    - sudo apt-get update -y
    - sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool
    - sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils libxcb-dri2-0-dev libxcb-xfixes0-dev

test:
  override:
    - ldd --version
    - ./mason build ${MASON_NAME} ${MASON_VERSION}

deployment:
  publish:
    branch: /.*/
    commands:
      - ./mason publish ${MASON_NAME} ${MASON_VERSION}
