Skip to content

Commit

Permalink
Merge pull request #9 from frankkopp/develop
Browse files Browse the repository at this point in the history
Release v0.3
  • Loading branch information
frankkopp authored Aug 28, 2020
2 parents 857357e + 3e43d55 commit 620e866
Show file tree
Hide file tree
Showing 99 changed files with 111,703 additions and 2,438 deletions.
6 changes: 3 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignOperands: true
AlignOperands: Align
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
Expand All @@ -29,7 +29,7 @@ BraceWrapping:
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
BreakBeforeBinaryOperators: None
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
Expand All @@ -45,7 +45,7 @@ NamespaceIndentation: All
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Left
ReflowComments: false
ReflowComments: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ build/
*.cache.*
/Release/bin/books/
/Release/bin/config/
/books/superbook_xl.pgn
/Testing/
2 changes: 1 addition & 1 deletion .run/FrankyCPP_v0.2_Test SHORT.run.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="FrankyCPP_v0.2_Test SHORT" type="CMakeGoogleTestRunConfigurationType" factoryName="Google Test" REDIRECT_INPUT="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="FrankyCPP" TARGET_NAME="FrankyCPP_v0.2_Test" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="FrankyCPP" RUN_TARGET_NAME="FrankyCPP_v0.2_Test" TEST_PATTERN="-*SpeedTests.*" TEST_MODE="PATTERN">
<configuration default="false" name="FrankyCPP Test SHORT" type="CMakeGoogleTestRunConfigurationType" factoryName="Google Test" REDIRECT_INPUT="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="FrankyCPP" TARGET_NAME="FrankyCPP_v0.3_Test" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="FrankyCPP" RUN_TARGET_NAME="FrankyCPP_v0.3_Test" TEST_PATTERN="-*SpeedTests.*:-*TimingTests.*" TEST_MODE="PATTERN">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
<option name="BeforeTestRunTask" enabled="true" />
Expand Down
29 changes: 0 additions & 29 deletions .travis.linux_gcc

This file was deleted.

29 changes: 0 additions & 29 deletions .travis.no

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.win

This file was deleted.

77 changes: 77 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
branches:
only:
- master
- develop
- /dev_.*$/

os: linux
dist: xenial
sudo: required
language: cpp
compiler: gcc

addons:
apt:
sources:
# ubuntu early access versions
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9

env: COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Release

before_install:
# Check versions of gcc, g++ and cmake
- which gcc && which g++ && which gcc-ar && which cmake
- gcc -v && g++ -v && gcc-ar --version && cmake --version

install:
# Update to gcc-9
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
- sudo update-alternatives --set gcc /usr/bin/gcc-9
- sudo update-alternatives --set g++ /usr/bin/g++-9
- ls -laF /usr/bin/gcc*
- sudo rm -f /usr/bin/gcc-ar
- sudo rm -f /usr/bin/gcc-ranlib
- sudo rm -f /usr/bin/gcc-nm
- sudo ln -s /usr/bin/gcc-ar-9 /usr/bin/gcc-ar
- sudo ln -s /usr/bin/gcc-ranlib-9 /usr/bin/gcc-ranlib
- sudo ln -s /usr/bin/gcc-nm-9 /usr/bin/gcc-nm
- ls -laF /usr/bin/gcc*
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-9
- export CXX=/usr/bin/g++-9
- export AR=/usr/bin/gcc-ar-9
- export NM=/usr/bin/gcc-nm-9
- export RANLIB=/usr/bin/gcc-ranlib-9
# Newer CMAKE
- curl -sSL https://cmake.org/files/v3.18/cmake-3.18.2-Linux-x86_64.sh -o install-cmake.sh
- chmod +x install-cmake.sh
- sudo ./install-cmake.sh --prefix=/usr/local --skip-license
- export PATH=/usr/local/bin:$PATH;
# Install BOOST
- wget https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.gz >> /dev/null 2>&1
- tar xfz boost_1_73_0.tar.gz
- cd boost_1_73_0/
- ./bootstrap.sh --with-libraries=serialization,program_options >> /dev/null 2>&1
- ./b2 >> /dev/null 2>&1
- sudo ./b2 install >> /dev/null 2>&1
- cd ..

before_script:
# Check versions of gcc, g++ and cmake
- which gcc && which g++ && which gcc-ar && which cmake
- gcc -v && g++ -v && gcc-ar --version && cmake --version
- mkdir -p build && cd build

script:
# Run your build commands next
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBENCHMARK_ENABLE_TESTING=OFF -DTRAVIS=true ..
- make -j
- ctest -C ${BUILD_TYPE} -DBENCHMARK_ENABLE_TESTING=OFF -E ".*SpeedTests.*" -E ".*TimingTests.*" --output-on-failure
- ./testbench/FrankyCPP_v0.3_Bench
- ./src/FrankyCPP_v0.3 --perft --endDepth=5


Loading

0 comments on commit 620e866

Please sign in to comment.