forked from libxsmm/libxsmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (57 loc) · 3.41 KB
/
.travis.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# avoid any dashes at the begin of a line within a test section
script:
- make -e ${MAKEJ} ${PEDANTIC_HIGH} TRACE=1 STATIC=0 BLAS=1 ABSLIBS=1 MIX=0
EFLAGS="-DITYPE=double -DINCLUDE_LIBXSMM_LAST" ${INSTALL} tests
- make -e ${MAKEJ} ${PEDANTIC_HIGH} TRACE=1 MNK="19 27, 23"
EFLAGS="-DLIBXSMM_CAPACITY_REGISTRY=32" ${INSTALL} test-cp2k
- make -e ${MAKEJ} ${PEDANTIC_HIGH} MNK="4 8" STATIC=0 PREFETCH=0 CACHE=0
EFLAGS="-DLIBXSMM_NO_CTOR -DINCLUDE_LIBXSMM_LAST" ${INSTALL} test-nek
- make -e ${MAKEJ} ${PEDANTIC_HIGH} STATIC=0
EFLAGS="-DLIBXSMM_NO_CTOR -DINCLUDE_LIBXSMM_LAST" ${INSTALL} tests
- make -e ${MAKEJ} ${PEDANTIC_HIGH} MNK="9 3, 23" STATIC=0
EFLAGS="-DLIBXSMM_MALLOC_MMAP" ${INSTALL} test-smm
- make -e ${MAKEJ} ${PEDANTIC_HIGH} INTRINSICS=1 MIX=0
EFLAGS="-DELEM_TYPE=char -DUSE_EXPECTED" ${INSTALL} tests
- make -e ${MAKEJ} ${PEDANTIC_HIGH} SSE=0 AVX=0 JIT=0
EFLAGS="-DELEM_TYPE=short" ${INSTALL} tests
- make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 INTRINSICS=0 &&
cd ${TRAVIS_BUILD_DIR}/samples/utilities/wrap &&
make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 INTRINSICS=0 test
- make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 STATIC=1 &&
cd ${TRAVIS_BUILD_DIR}/samples/utilities/wrap &&
make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 STATIC=1 test
- make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 PREC=2 STATIC=0 BLAS=2 &&
cd ${TRAVIS_BUILD_DIR}/samples/utilities/wrap &&
make -e ${MAKEJ} ${PEDANTIC_TEST} VLA=0 PREC=2 STATIC=0 BLAS=2 test
- cd ${TRAVIS_BUILD_DIR}/samples/cp2k &&
make -e ${MAKEJ} ${PEDANTIC_HIGH} AVX=3 MIC=0 OMP=1 ECXXFLAGS='-DUSE_HEADER_ONLY' compile &&
make -e ${MAKEJ} ${PEDANTIC_HIGH} AVX=2 THREADS=0 ECXXFLAGS='-DUSE_HEADER_ONLY' compile &&
make -e ${MAKEJ} ${PEDANTIC_HIGH} AVX=1 VLA=0 ECXXFLAGS='-DUSE_HEADER_ONLY' compile
- if [ "${STATIC_ANALYSIS}" ] && [ "0" != "${STATIC_ANALYSIS}" ]; then
${TRAVIS_BUILD_DIR}/scripts/tool_analyze.sh;
fi
- if [ "${STATIC_ANALYSIS}" ] && [ "0" != "${STATIC_ANALYSIS}" ]; then
${TRAVIS_BUILD_DIR}/scripts/tool_normalize.sh;
fi
- if [ "${STATIC_ANALYSIS}" ] && [ "0" != "${STATIC_ANALYSIS}" ]; then
make -e ${MAKEJ} STATIC=0 DBG=1 && ${TRAVIS_BUILD_DIR}/scripts/tool_checkabi.sh;
fi
- if [ "${STATIC_ANALYSIS}" ] && [ "0" != "${STATIC_ANALYSIS}" ]; then
if [ ! "${COVERITY_SCAN_BINDIR}" ] || [ ! "${COVERITY_SCAN_USER}" ] || [ ! "${COVERITY_SCAN_TOKEN}" ]; then
echo "Please setup COVERITY_SCAN_BINDIR, COVERITY_SCAN_USER, and COVERITY_SCAN_TOKEN.";
exit 1;
fi;
if [ "${COVERITY_SCAN_TMPDIR_CLEAR}" ] && [ "0" != "${COVERITY_SCAN_TMPDIR_CLEAR}" ] &&
[ "." != ""${COVERITY_SCAN_TMPDIR}"" ] && [ -e "${COVERITY_SCAN_TMPDIR}" ];
then
rm -rf "${COVERITY_SCAN_TMPDIR}";
fi;
${COVERITY_SCAN_BINDIR}/cov-build --dir ${COVERITY_SCAN_TMPDIR} make -e ${MAKEJ} &&
tar cvfz "${COVERITY_SCAN_TGZDIR}/cov-int.tgz" -C "$(dirname "${COVERITY_SCAN_TMPDIR}")" --transform
"s/^$(basename "${COVERITY_SCAN_TMPDIR}")/cov-int/" $(basename ${COVERITY_SCAN_TMPDIR}) &&
curl https://scan.coverity.com/builds?project=hfp-libxsmm --form
token=${COVERITY_SCAN_TOKEN} --form email=${COVERITY_SCAN_USER} --form
file=@${COVERITY_SCAN_TGZDIR}/cov-int.tgz --form
version="$(${TRAVIS_BUILD_DIR}/scripts/tool_version.sh)" --form
description="$(date -I): $(git log -1 --pretty=oneline | cut -d' ' -f2-)";
fi