forked from ralna/spral
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (49 loc) · 1.34 KB
/
Copy path.travis.yml
File metadata and controls
49 lines (49 loc) · 1.34 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
language: c++
# Enable trusty so we have access to libmetis-dev
sudo: required
dist: trusty
# Make OpenMP happy
env:
global:
- OMP_NESTED=true
- OMP_CANCELLATION=true
- OMP_PROC_BIND=true
- OMP_NUM_THREADS=4
# Define matrix of builds with different compiler versions
matrix:
include:
- compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran-5
- gcc-5
- g++-5
- libmetis-dev
- libatlas-dev
- liblapack-dev
env: COMP_VER=5
- compiler: gcc-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran-6
- gcc-6
- g++-6
- libmetis-dev
- libatlas-dev
- liblapack-dev
env: COMP_VER=6
# Don't worry about high git depth, we don't need it
git:
depth: 3
# Pre build, generate autotools files
install:
- ./autogen.sh
# Actual build step
script:
- ./configure CC=gcc-${COMP_VER} CXX=g++-${COMP_VER} F77=gfortran-${COMP_VER} FC=gfortran-${COMP_VER} CFLAGS="-g -O2 -Wall" CXXFLAGS="-g -O2 -Wall" FCFLAGS="-g -O2 -Wall -pedantic" && make && make check