language: cpp

sudo: false

os:
  - linux
  - osx
  
compiler:
  - clang
  - gcc

before_script:
  - echo "CC=$CXX" > make/local

matrix:
  fast_finish: true
  exclude:
    - os: osx
      compiler: gcc

env:
  - TESTFOLDER=test/unit/math/memory
  - TESTFOLDER=test/unit/math/prim/scal
  - TESTFOLDER=test/unit/math/prim/arr
  - TESTFOLDER=test/unit/math/prim/mat
  - TESTFOLDER=test/unit/math/rev/scal
  - TESTFOLDER=test/unit/math/rev/arr
  - TESTFOLDER=test/unit/math/rev/mat
  - TESTFOLDER=test/unit/math/fwd/scal
  - TESTFOLDER=test/unit/math/fwd/arr
  - TESTFOLDER=test/unit/math/fwd/mat
 # - TESTFOLDER=test/unit/math/mix # times out on travis

script: ./runTests.py -j2 $TESTFOLDER

language: cpp

sudo: false

os:
  - linux
  - osx
  
compiler:
  - clang
  - gcc

before_script:
  - echo "CC=$CXX" > make/local

matrix:
  fast_finish: true
  exclude:
    - os: osx
      compiler: gcc

env:
  - TESTFOLDER=test/unit/math/memory
  - TESTFOLDER=test/unit/math/prim/scal
  - TESTFOLDER=test/unit/math/prim/arr
  - TESTFOLDER=test/unit/math/prim/mat
  - TESTFOLDER=test/unit/math/rev/scal
  - TESTFOLDER=test/unit/math/rev/arr
  - TESTFOLDER=test/unit/math/rev/mat
  - TESTFOLDER=test/unit/math/fwd/scal
  - TESTFOLDER=test/unit/math/fwd/arr
  - TESTFOLDER=test/unit/math/fwd/mat
 # - TESTFOLDER=test/unit/math/mix # times out on travis

script: ./runTests.py -j2 $TESTFOLDER

dist: trusty

Upgrade to Trusty to get newer Clang.
Upgrade to Trusty to get newer Clang.
