Skip to content
Snippets Groups Projects
.travis.yml 4.92 KiB
######## Testing minimal compiler requirements ########
# GCC          6.4.0
# Clang        4.0
# Apple Clang  900.0.39.2
# Python       3.6
#######################################################

language: cpp
sudo: false

matrix:
  include:
########################## OS X #########################
## test gcc6 - single node/rank with threading backend ##
  - name: "osx, gcc, serial, py"
    os: osx
    osx_image: xcode9.2
    python: 3.6
    env:
      - MATRIX_EVAL="brew install gcc@6 && brew link --force --overwrite gcc@6 && CC=gcc-6 && CXX=g++-6"
      - BUILD_NAME=cthread-osx-gcc-py
      - WITH_DISTRIBUTED=serial WITH_PYTHON=true PY=3
    compiler: gcc-6

## test gcc6 - mpi with threading backend ##
  - name: "osx, gcc, mpi, py"
    os: osx
    osx_image: xcode9.2
    python: 3.6
    env:
      - MATRIX_EVAL="brew install gcc@6 && brew link --force --overwrite gcc@6 && CC=gcc-6 && CXX=g++-6"
      - BUILD_NAME=mpi-osx-gcc-py
      - WITH_DISTRIBUTED=mpi WITH_PYTHON=true PY=3
    compiler: gcc-6

## test clang9 - single node/rank with threading backend ##
  - name: "osx, apple clang, serial, py"
    os: osx
    osx_image: xcode9.2
    python: 3.6
    env:
      - MATRIX_EVAL="CC=clang && CXX=clang++"
      - BUILD_NAME=cthread-osx-clang-py
      - WITH_DISTRIBUTED=serial WITH_PYTHON=true PY=3
    compiler: clang

## test clang9 - mpi with threading backend ##
  - name: "osx, apple clang, mpi, py"
    os: osx
    osx_image: xcode9.2
    python: 3.6
    env:
      - MATRIX_EVAL="CC=clang && CXX=clang++"
      - BUILD_NAME=mpi-osx-clang
      - WITH_DISTRIBUTED=mpi WITH_PYTHON=true PY=3
    compiler: clang

######################### LINUX #########################
## test gcc6 - single node/rank with threading backend ##
  - name: "linux, gcc, serial, py"
    os: linux
    dist: trusty
    python: 3.6
    addons:
      apt:
        sources:
          - ubuntu-toolchain-r-test
        packages:
          - g++-6
          - openmpi-bin