Skip to content

Commit 408b4fe

Browse files
committed
Add a CMake GCC and Clang target to Travis CI
1 parent 4474465 commit 408b4fe

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,34 @@ jobs:
119119
- TARGET_BOX=LINUX64_MUSL
120120
- BTYPE="BINARY=64 NO_AFFINITY=1 USE_OPENMP=0 NO_LAPACK=0 TARGET=core2"
121121

122+
- &test-cmake
123+
stage: test
124+
compiler: clang
125+
addons:
126+
apt:
127+
packages:
128+
- gfortran
129+
- cmake
130+
dist: trusty
131+
sudo: true
132+
before_script:
133+
- COMMON_ARGS="-DTARGET=NEHALEM -DNUM_THREADS=32"
134+
script:
135+
- set -e
136+
- mkdir build
137+
- CONFIG=Release
138+
- cmake -Bbuild -H. $CMAKE_ARGS $COMMON_ARGS -DCMAKE_BUILD_TYPE=$CONFIG
139+
- cmake --build build --config $CONFIG -- -j2
140+
env:
141+
- CMAKE=1
142+
- <<: *test-cmake
143+
env:
144+
- CMAKE=1 CMAKE_ARGS="-DNOFORTRAN=1"
145+
- <<: *test-cmake
146+
compiler: gcc
147+
env:
148+
- CMAKE=1
149+
122150
# whitelist
123151
branches:
124152
only:

0 commit comments

Comments
 (0)