]> git.sesse.net Git - stockfish/blob - .travis.yml
Tweak check extension condition
[stockfish] / .travis.yml
1 language: cpp
2 sudo: required
3 dist: trusty
4
5 matrix:
6   include:
7     - os: linux
8       compiler: gcc
9       addons:
10         apt:
11           sources: ['ubuntu-toolchain-r-test']
12           packages: ['g++-multilib']
13       env:
14         - COMPILER=g++
15         - COMP=gcc
16
17     - os: linux
18       compiler: clang
19       addons:
20         apt:
21           sources: ['ubuntu-toolchain-r-test']
22           packages: ['clang', 'g++-multilib']
23       env:
24         - COMPILER=clang++
25         - COMP=clang
26
27     - os: osx
28       compiler: gcc
29       env:
30         - COMPILER=g++
31         - COMP=gcc
32
33     - os: osx
34       compiler: clang
35       env:
36         - COMPILER=clang++ V='Apple LLVM 6.0' # Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
37         - COMP=clang
38
39 branches:
40   only:
41    - master
42
43 before_script:
44   - cd src
45
46 script:
47   - make clean && make build ARCH=x86-64 && ./stockfish bench 2>&1 >/dev/null | grep 'Nodes searched' | tee bench1
48   - make clean && make build ARCH=x86-32 && ./stockfish bench 2>&1 >/dev/null | grep 'Nodes searched' | tee bench2
49   - echo "Checking for same bench numbers..."
50   - diff bench1 bench2 > result
51   - test ! -s result