Skip to content

Commit 6e809e7

Browse files
committed
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX into increase_tolerances
2 parents 644fe7b + 936b115 commit 6e809e7

File tree

417 files changed

+275395
-25891
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+275395
-25891
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ depthmapX-build
44
build
55
RegressionTest/rundir
66
__pycache__
7-
depthmapX.pro.user
7+
CMakeLists.txt.user
88
*_BACKUP_*
99
*_BASE_*
1010
*_LOCAL_*

.mailmap

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Petros Koutsolampros <[email protected]> <[email protected]>
2+
Petros Koutsolampros <[email protected]> Petros Koutsolampros <[email protected]>
3+
Petros Koutsolampros <[email protected]> Petros <[email protected]>

.travis.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
sudo: required
2-
dist: trusty
2+
dist: xenial
33
language: c++
4+
services:
5+
- docker
6+
47
notifications:
58
slack: depthmapx:B3CKNlNDLrNz1vSOU5yoQQqA
9+
webhooks:
10+
urls:
11+
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MG9yYW5nZS12ZXJ0ZXglM0FtYXRyaXgub3JnLyUyMUVZQUZRaEVrV3lDZm1hcm9QaCUzQW1hdHJpeC5vcmc"
12+
on_success: always # always|never|change
13+
on_failure: always
14+
on_start: never
615

716

8-
before_install:
9-
- sudo add-apt-repository --yes ppa:beineri/opt-qt571-trusty
10-
- sudo add-apt-repository --yes ppa:deadsnakes/ppa
11-
- sudo apt-get update -qq
12-
13-
install:
14-
- sudo apt-get -y install qt573d qt57tools libgl1-mesa-dev libglu1-mesa-dev python3.5
15-
1617
script:
17-
- source /opt/qt57/bin/qt57-env.sh
18-
- mkdir build && cd build
19-
- /opt/qt57/bin/qmake ../depthmapX.pro
20-
- make
21-
- ./cliTest/cliTest && ./GuiUnitTest/GuiUnitTest && ./salaTest/salaTest && ./genlibTest/genlibTest
22-
- cd ../RegressionTest/test && python3.5 test_main.py && cd .. && python3.5 RegressionTestRunner.py && python3.5 RegressionTestRunner.py regressionconfig_agents.json
18+
- docker run --security-opt seccomp:unconfined --user $UID -v $PWD:/mnt/code blackseamonster/depthmapx-buildenv:0.3 bash -c ci/build.sh

CMakeLists.txt

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum macOS deployment version")
2+
project(depthmapX)
3+
cmake_minimum_required(VERSION 3.13.0)
4+
set(CMAKE_CXX_STANDARD 17)
5+
6+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
7+
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
8+
set(warnings "-Wall -Wextra")
9+
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
10+
set(warnings "/W4 /EHsc")
11+
execute_process(COMMAND make_version_header.bat WORKING_DIRECTORY depthmapX)
12+
endif()
13+
14+
# policy for target sources - we don't expect any old CMakes
15+
cmake_policy(SET CMP0076 NEW)
16+
17+
include_directories(".")
18+
19+
# Get the current working branch
20+
execute_process(
21+
COMMAND git rev-parse --abbrev-ref HEAD
22+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
23+
OUTPUT_VARIABLE APP_BRANCH
24+
OUTPUT_STRIP_TRAILING_WHITESPACE
25+
)
26+
27+
# Get the latest abbreviated commit hash of the working branch
28+
execute_process(
29+
COMMAND git log -1 --format=%h
30+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
31+
OUTPUT_VARIABLE APP_COMMIT
32+
OUTPUT_STRIP_TRAILING_WHITESPACE
33+
)
34+
35+
# generate version_defs.h
36+
include_directories(${CMAKE_BINARY_DIR})
37+
configure_file("${CMAKE_SOURCE_DIR}/version_defs.h.in" "${CMAKE_BINARY_DIR}/version_defs.h" @ONLY)
38+
39+
string(TIMESTAMP APP_DATE %Y-%m-%d)
40+
41+
add_subdirectory(genlib)
42+
add_subdirectory(genlibTest)
43+
add_subdirectory(salalib)
44+
add_subdirectory(mgraph440)
45+
add_subdirectory(mgraph440Test)
46+
add_subdirectory(salaTest)
47+
add_subdirectory(depthmapXcli)
48+
add_subdirectory(cliTest)
49+
add_subdirectory(depthmapXTest)
50+
add_subdirectory(depthmapX)
51+
add_subdirectory(GuiUnitTest)

GuiApp/GuiApp.pro

-38
This file was deleted.

GuiApp/resources/Info.plist

-33
This file was deleted.

GuiUnitTest/CMakeLists.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
set(GuiUnitTest GuiUnitTest)
2+
3+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
4+
# Find the QtWidgets library
5+
find_package(Qt5 COMPONENTS Core Widgets Gui OpenGL REQUIRED)
6+
# Instruct CMake to run moc automatically when needed
7+
set(CMAKE_AUTOMOC ON)
8+
9+
set(guiUnitTest_SRCS
10+
main.cpp
11+
testviewhelpers.cpp
12+
testsettings.cpp
13+
../depthmapX/settingsimpl.cpp
14+
../depthmapX/views/viewhelpers.cpp)
15+
16+
include_directories("../ThirdParty/Catch" "../ThirdParty/FakeIt" "../depthmapX")
17+
18+
set(LINK_LIBS salalib genlib mgraph440 Qt5::Core)
19+
20+
add_executable(${GuiUnitTest} ${guiUnitTest_SRCS})
21+
target_link_libraries(${GuiUnitTest} ${LINK_LIBS})
22+

GuiUnitTest/GuiUnitTest.pro

-37
This file was deleted.

GuiUnitTest/testviewhelpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// You should have received a copy of the GNU General Public License
1414
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16-
#include "viewhelpers.h"
16+
#include "depthmapX/views/viewhelpers.h"
1717
#include "catch.hpp"
1818
#include <time.h>
1919
#include <sstream>

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ depthmapX uses [Qt5](http://www.qt.io) as UI toolkit and build system, [Catch](h
2323

2424
Please join the depthmapX mail distribution list at www.jiscmail.ac.uk/lists/DEPTHMAP.html for updates.
2525

26+
The developers and users of depthmapX can also be found on matrix/riot for more direct and extended discussions in the following channels:
27+
- [depthmapX-users](https://riot.im/app/#/room/#depthmapX-users:matrix.org) - for general discussion, and questions about using depthmapX
28+
- [depthmapX-devel](https://riot.im/app/#/room/#depthmapX-devel:matrix.org) - for development discussion
Binary file not shown.
Binary file not shown.

RegressionTest/RegressionTestRunner.py

+3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ def run(self):
3838
return good
3939

4040
if __name__ == "__main__":
41+
print("Starting up RegressionTestRunner")
4142
configFile = defaultConfigFile
4243
if len(sys.argv) == 2:
4344
configFile = sys.argv[1]
45+
print("Config file in use is: " + configFile)
4446
r = RegressionTestRunner(configFile, runhelpers.runExecutable)
47+
print("Setup complete, starting run")
4548
if not r.run():
4649
exit(-1)
4750

0 commit comments

Comments
 (0)