Skip to content

Commit d88abb9

Browse files
Expands test matrix in travis CI (#1)
* Expands test matrix in travis CI * Update .travis.yml Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
1 parent 64d0bf2 commit d88abb9

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

.travis.yml

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,88 @@ jobs:
4141
- name: build_with_autotools
4242
env:
4343
- FCFLAGS_ADD='' DISTCHECK_CONFIGURE_FLAGS=''
44+
45+
# Travis sets CC to gcc, but we need to ensure it is not set, so we can use mpicc
46+
before_install:
47+
- test -n "$CC" && unset CC
48+
49+
before_script:
50+
- export CC=mpicc
51+
- export FC=mpif90
52+
- export CPPFLAGS="-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500"
53+
- export FCFLAGS="-Waliasing -fno-range-check ${FCFLAGS_ADD}"
54+
- export LDFLAGS='-L/usr/lib'
55+
- export VERBOSE=1
56+
57+
script:
58+
- autoreconf -i
59+
- ./configure ${DISTCHECK_CONFIGURE_FLAGS}
60+
- make -j distcheck
61+
#build_with_autotools_no_openmp
62+
- name: build_with_autotools_no_openmp
63+
env:
4464
- FCFLAGS_ADD='' DISTCHECK_CONFIGURE_FLAGS='--without-openmp'
65+
66+
before_install:
67+
- test -n "$CC" && unset CC
68+
69+
before_script:
70+
- export CC=mpicc
71+
- export FC=mpif90
72+
- export CPPFLAGS="-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500"
73+
- export FCFLAGS="-Waliasing -fno-range-check ${FCFLAGS_ADD}"
74+
- export LDFLAGS='-L/usr/lib'
75+
- export VERBOSE=1
76+
77+
script:
78+
- autoreconf -i
79+
- ./configure ${DISTCHECK_CONFIGURE_FLAGS}
80+
- make -j distcheck
81+
#build_with_autotools_mixed_mode
82+
- name: build_with_autotools_mixed_mode
83+
env:
4584
- FCFLAGS_ADD='' DISTCHECK_CONFIGURE_FLAGS='--enable-mixed-mode'
85+
86+
before_install:
87+
- test -n "$CC" && unset CC
88+
89+
before_script:
90+
- export CC=mpicc
91+
- export FC=mpif90
92+
- export CPPFLAGS="-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500"
93+
- export FCFLAGS="-Waliasing -fno-range-check ${FCFLAGS_ADD}"
94+
- export LDFLAGS='-L/usr/lib'
95+
- export VERBOSE=1
96+
97+
script:
98+
- autoreconf -i
99+
- ./configure ${DISTCHECK_CONFIGURE_FLAGS}
100+
- make -j distcheck
101+
#build_with_autotools_r8
102+
- name: build_with_autotools_r8
103+
env:
46104
- FCFLAGS_ADD='-fdefault-real-8 -fdefault-double-8 -fcray-pointer -ffree-line-length-none' DISTCHECK_CONFIGURE_FLAGS='--disable-setting-flags'
105+
106+
before_install:
107+
- test -n "$CC" && unset CC
108+
109+
before_script:
110+
- export CC=mpicc
111+
- export FC=mpif90
112+
- export CPPFLAGS="-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500"
113+
- export FCFLAGS="-Waliasing -fno-range-check ${FCFLAGS_ADD}"
114+
- export LDFLAGS='-L/usr/lib'
115+
- export VERBOSE=1
116+
117+
script:
118+
- autoreconf -i
119+
- ./configure ${DISTCHECK_CONFIGURE_FLAGS}
120+
- make -j distcheck
121+
#build_with_autotools_mpp_io
122+
- name: build_with_autotools_mpp_io
123+
env:
47124
- FCFLAGS_ADD='' DISTCHECK_CONFIGURE_FLAGS='--enable-mpp-io'
48125

49-
# Travis sets CC to gcc, but we need to ensure it is not set, so we can use mpicc
50126
before_install:
51127
- test -n "$CC" && unset CC
52128

0 commit comments

Comments
 (0)