Skip to content
Snippets Groups Projects
.travis.yml 1.47 KiB
language: cpp
#compiler:
#  - gcc
env:
  matrix:
    - xMPI=0 
    - xMPI=1 
    
matrix:
 # do notify immediately about it when a job of a build fails.
  fast_finish: true
branches:
 only:
  - master
cache:
  apt: true 
  ccache: true
  

before_install:
  - echo $CXX
  - echo $CC
  - if [ "$CXX" == "g++" ]; then export CXX=""; fi
  - if [ "$CC" == "gcc" ];  then export CXX=""; fi
  - echo $CXX
  - echo $CC
  
  - echo $LANG
  - echo $LC_ALL

  # update repository status (-qq is more quiet)
  - sudo apt-get update -qq
  - sudo apt-get install -y  coreutils gawk mawk original-awk
  # some basic package build tools:
  - sudo apt-get install -y devscripts build-essential
  # remove any obsolete libraries
  - sudo apt-get autoremove
  - sudo apt-get install -y python-coverage python-nose python-setuptools
  - sudo apt-get install -y python-mpi4py openmpi-bin openmpi-doc libopenmpi-dev
  # Install pip and cython
  - wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
  - sudo python get-pip.py
  - pip install --user cython==0.21.1
  - sudo pip install -U setuptools

install: 
  - cython --version
  
before_script:
  - chmod +x build.sh 
  
script: ./build.sh      

notifications:
  email:
    recipients:
      - r.deepu@fz-juelich.de
    on_success: change
    on_failure: always
    #on_start: false

after_failure:
  - cd $TRAVIS_BUILD_DIR/build
  - |
    for i in $(find reports -type f); do
      echo "###########################"
      echo "File: $i"
      cat $i
    done