10 packages: ['g++-8', 'g++-8-multilib', 'g++-multilib', 'valgrind', 'expect', 'curl']
19 packages: ['clang-10', 'llvm-10-dev', 'g++-multilib', 'valgrind', 'expect', 'curl']
49 # Obtain bench reference from git log
50 - git log HEAD | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed "s/[^0-9]*\([0-9]*\).*/\1/g" > git_sig
51 - export benchref=$(cat git_sig)
52 - echo "Reference bench:" $benchref
54 # Compiler version string
60 # Verify bench number against various builds
61 - export CXXFLAGS="-Werror -D_GLIBCXX_DEBUG"
62 - make clean && make -j2 ARCH=x86-64-modern optimize=no debug=yes build && ../tests/signature.sh $benchref
63 - export CXXFLAGS="-Werror"
64 - make clean && make -j2 ARCH=x86-64-modern build && ../tests/signature.sh $benchref
65 - make clean && make -j2 ARCH=x86-64-ssse3 build && ../tests/signature.sh $benchref
66 - make clean && make -j2 ARCH=x86-64-sse3-popcnt build && ../tests/signature.sh $benchref
67 - make clean && make -j2 ARCH=x86-64 build && ../tests/signature.sh $benchref
68 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=general-64 build && ../tests/signature.sh $benchref; fi
69 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build && ../tests/signature.sh $benchref; fi
70 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32-sse41-popcnt build && ../tests/signature.sh $benchref; fi
71 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32-sse2 build && ../tests/signature.sh $benchref; fi
72 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=x86-32 build && ../tests/signature.sh $benchref; fi
73 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && make -j2 ARCH=general-32 build && ../tests/signature.sh $benchref; fi
74 # workaround: exclude a custom version of llvm+clang, which doesn't find llvm-profdata on ubuntu
75 - if [[ "$TRAVIS_OS_NAME" != "linux" || "$COMP" == "gcc" ]]; then make clean && make -j2 ARCH=x86-64-modern profile-build && ../tests/signature.sh $benchref; fi
77 # compile only for some more advanced architectures (might not run in travis)
78 - make clean && make -j2 ARCH=x86-64-avx2 build
79 - make clean && make -j2 ARCH=x86-64-bmi2 build
80 - make clean && make -j2 ARCH=x86-64-avx512 build
81 - make clean && make -j2 ARCH=x86-64-vnni512 build
82 - make clean && make -j2 ARCH=x86-64-vnni256 build
85 # Check perft and reproducible search
86 - make clean && make -j2 ARCH=x86-64-modern build
88 - ../tests/reprosearch.sh
93 - export CXXFLAGS="-O1 -fno-inline"
94 - 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
95 - if [ -x "$(command -v valgrind )" ]; then ../tests/instrumented.sh --valgrind-thread; fi
100 - 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
101 - 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