mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-22 22:45:52 +00:00
Installing SFML & QT5 for tests, I'm tired
This commit is contained in:
@@ -21,6 +21,9 @@ jobs:
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install the SFML.
|
||||
run: sudo apt-get update &&
|
||||
sudo apt-get install --yes libsfml-dev qt5-default
|
||||
- name: Install Criterion
|
||||
run: sudo add-apt-repository ppa:snaipewastaken/ppa &&
|
||||
sudo apt-get update &&
|
||||
@@ -28,7 +31,7 @@ jobs:
|
||||
- name: Install Gcovr
|
||||
run: python -m pip install --upgrade pip gcovr
|
||||
- name: Build Makefile with CMake
|
||||
run: mkdir -p build && cd build && cmake .. --target unit_tests
|
||||
run: mkdir -p build && cd build && cmake ..
|
||||
- name: Build with Makefile
|
||||
run: make -C build unit_tests
|
||||
- name: Execute tests
|
||||
|
||||
@@ -109,12 +109,6 @@ add_executable(unit_tests
|
||||
target_link_libraries(unit_tests criterion -lgcov)
|
||||
target_compile_options(unit_tests PUBLIC -fprofile-arcs -ftest-coverage)
|
||||
|
||||
if ("${GITBUILD}" STREQUAL true)
|
||||
include_directories(ComSquare build/include)
|
||||
link_directories(ComSquare build/lib)
|
||||
message("Git build is true")
|
||||
endif ()
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
Reference in New Issue
Block a user