-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/playbookImport'
This merges some code which does essentially 2 things: - setting up a unit test infrastructure with the Boost test framework - implementing basic functionality to import another playbook, including tests The implemented importing functionality is one big step for issue #10. The API supports importing all plays, categories, formations and routes. However, you cannot choose which particular plays to import and which not. Furthermore, there is no exporting functionality, yet to let you choose which particular plays/categories/.. you want to export. There is also a GUI dialog missing to fully use the current API. Currently, it is hardcoded that plays, categories and formations (but no routes) are imported and that the name of everyone of these are prefixed with 'imported_'. To implement playbook importing there are some changes to the codebase: There is a new class PBCController. This addresses issue #20 and is a first step for centralizing the business logic of PBC. For now, the PBCController simply does nothing else than maintaining the active instance of PBCPlaybook. The class PBCPlaybook is no longer a singleton. There is the one "active Playbook" object instead. This was necessary to be able to instantiate another object of PBCPlaybook for another playbook to be imported. Moreover several adaptions for the CI scripts were necessary.
- Loading branch information
Showing
37 changed files
with
879 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
os: osx | ||
language: cpp | ||
install: | ||
- cmake --version | ||
- brew list git || brew install git | ||
- brew list cmake || brew install cmake | ||
- brew upgrade cmake | ||
- cmake --version | ||
- brew list pkg-config || brew install pkg-config | ||
- brew list qt || brew install qt | ||
- brew list boost || brew install boost | ||
- brew install [email protected] | ||
- brew unlink boost | ||
- brew link --force [email protected] | ||
- brew update | ||
- brew list git &>/dev/null || brew install git | ||
- brew list cmake &>/dev/null || brew install cmake | ||
- brew list pkg-config &>/dev/null || brew install pkg-config | ||
- brew list qt &>/dev/null || brew install qt | ||
- brew uninstall --ignore-dependencies boost | ||
- bash ci-scripts/build-boost.sh | ||
- ls boost | ||
- ls boost/lib | ||
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
cache: | ||
directories: | ||
botan | ||
- botan | ||
- boost | ||
script: | ||
- if [[ $SKIP_CACHE_RESTORE == true ]]; then | ||
git clone https://github.com/randombit/botan botan; | ||
cd botan; | ||
git checkout 2.6.0; | ||
python configure.py --disable-shared-library --disable-modules=darwin_secrandom; | ||
make; | ||
cd ..; | ||
fi | ||
- cmake . -DBOTAN_LIBRARY=botan/libbotan-2.a -DBOTAN_INCLUDE_DIR=botan/build/include -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) | ||
- ls botan/ | ||
- bash ci-scripts/build-botan.sh | ||
- cmake . -DBoost_INCLUDE_DIR=$(pwd)/boost/include -DBoost_INCLUDE_DIR=$(pwd)/boost/include -DBoost_LIBRARY_DIR=$(pwd)/boost/lib -DBOTAN_LIBRARY=botan/libbotan-2.a -DBOTAN_INCLUDE_DIR=botan/build/include -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) | ||
- make | ||
- ASAN_OPTIONS=detect_leaks=0 bin/tests -- --test-base-dir "test" | ||
- $(brew --prefix qt5)/bin/macdeployqt bin/PlaybookCreator.app -verbose=3 -dmg -no-strip | ||
- bash deploy.sh bin/PlaybookCreator.dmg PlaybookCreator.dmg "PlaybookCreator for MacOSX" $GITHUB_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if [[ ! -f boost/lib/libboost_serialization.a ]]; then | ||
mkdir boost | ||
curl -O -L https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz; | ||
tar -xzf boost_1_66_0.tar.gz; | ||
cd boost_1_66_0; | ||
./bootstrap.sh --with-libraries=serialization,filesystem,test --prefix=../boost | ||
./b2 install link=static runtime-link=static &>/dev/null | ||
cd ..; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if [[ ! -f botan/libbotan-2.a ]]; then | ||
echo "hallo" | ||
git clone https://github.com/randombit/botan botan; | ||
cd botan; | ||
git checkout 2.6.0; | ||
python configure.py --disable-shared-library --disable-modules=darwin_secrandom; | ||
make; | ||
cd ..; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.