File: .travis.yml

package info (click to toggle)
chemps2 1.8.12-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,432 kB
  • sloc: cpp: 38,521; python: 1,116; f90: 215; makefile: 45; sh: 23
file content (37 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: cpp
os: linux
dist: bionic

addons:
  apt:
    sources:
        - ubuntu-toolchain-r-test
    packages:
        - cmake
        - cmake-data
        - liblapack-dev
        - libhdf5-serial-dev
        - g++-9
        - gcc-9
        - clang
env:
    global:
    # should be limited to 4 on travis
    - OMP_NUM_THREADS=4
    # make cmake verbose
    - VERBOSE=1
    matrix:
    # test two different compilers
    - MATRIX_EVAL="CXX=clang++ && CC=clang"
    - MATRIX_EVAL="CXX=g++-9 && CC=gcc-9"
before_install:
    - eval "${MATRIX_EVAL}"
    - if [[ $CXX == "clang++" ]]; then export LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH; fi
install:
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Release ..
    - make
script:
    # we put a timeout of 90 minutes
    - travis_wait 90 make test ARGS="-V"