You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust travis to cover more archs, speedup instrumented testing,
and download net before building to be able to compute hybrid bench.
in preparation for better NNUE integration in CI.
No functional change.
Copy file name to clipboardExpand all lines: .travis.yml
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,9 @@ before_script:
43
43
- cd src
44
44
45
45
script:
46
+
# Download net
47
+
- make net
48
+
46
49
# Obtain bench reference from git log
47
50
- git log HEAD | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed "s/[^0-9]*\([0-9]*\).*/\1/g" > git_sig
48
51
- export benchref=$(cat git_sig)
@@ -55,26 +58,38 @@ script:
55
58
#
56
59
# Verify bench number against various builds
57
60
- export CXXFLAGS="-Werror -D_GLIBCXX_DEBUG"
58
-
- make clean && make -j2 ARCH=x86-64 optimize=no debug=yes build && ../tests/signature.sh $benchref
61
+
- make clean && make -j2 ARCH=x86-64-modern optimize=no debug=yes build && ../tests/signature.sh $benchref
62
+
- export CXXFLAGS="-Werror"
63
+
- make clean && make -j2 ARCH=x86-64-modern build && ../tests/signature.sh $benchref
64
+
- make clean && make -j2 ARCH=x86-64-ssse3 build && ../tests/signature.sh $benchref
65
+
- make clean && make -j2 ARCH=x86-64-sse3-popcnt build && ../tests/signature.sh $benchref
66
+
- make clean && make -j2 ARCH=x86-64 build && ../tests/signature.sh $benchref
59
67
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build && ../tests/signature.sh $benchref; fi
60
68
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32 build && ../tests/signature.sh $benchref; fi
69
+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32-old build && ../tests/signature.sh $benchref; fi
70
+
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$COMP" == "gcc" ]]; then make clean && make -j2 ARCH=x86-64-modern profile-build && ../tests/signature.sh $benchref; fi
71
+
72
+
# compile only for some more advanced architectures (might not run in travis)
73
+
- make clean && make -j2 ARCH=x86-64-avx2 build
74
+
- make clean && make -j2 ARCH=x86-64-bmi2 build
75
+
# needs gcc 10 to compile
76
+
- if [[ "$COMPILER" != "g++-8" ]]; then make clean && make -j2 ARCH=x86-64-avx512 build; fi
61
77
62
78
#
63
79
# Check perft and reproducible search
64
-
- export CXXFLAGS="-Werror"
65
-
- make clean && make -j2 ARCH=x86-64 build
80
+
- make clean && make -j2 ARCH=x86-64-modern build
66
81
- ../tests/perft.sh
67
82
- ../tests/reprosearch.sh
68
83
69
84
#
70
85
# Valgrind
71
86
#
72
87
- export CXXFLAGS="-O1 -fno-inline"
73
-
- if [ -x "$(command -v valgrind )" ]; then make clean && make -j2 ARCH=x86-64 debug=yes optimize=no build > /dev/null && ../tests/instrumented.sh --valgrind; fi
88
+
- if [ -x "$(command -v valgrind )" ]; then make clean && make -j2 ARCH=x86-64-modern debug=yes optimize=no build > /dev/null && ../tests/instrumented.sh --valgrind; fi
74
89
- if [ -x "$(command -v valgrind )" ]; then ../tests/instrumented.sh --valgrind-thread; fi
75
90
76
91
#
77
92
# Sanitizer
78
93
#
79
-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=undefined optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-undefined; fi
80
-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=thread optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-thread; fi
94
+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-64-modern sanitize=undefined optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-undefined; fi
95
+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-64-modern sanitize=thread optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-thread; fi
0 commit comments