Skip to content

Commit

Permalink
Merge pull request #216 from FYP-Auto-Scale-JasmineGraph/master
Browse files Browse the repository at this point in the history
Use jasminegraph-prerequisite Image to Execute Unit Tests
  • Loading branch information
miyurud authored Dec 24, 2023
2 parents bed179b + fa5ae10 commit 1a0ebc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Native Build
run: |
mkdir build && cd build
pip install gcovr
sudo bash ../install-prerequisites.sh
cmake -DCMAKE_BUILD_TYPE=DEBUG ..
make
- name: Run unit test
run: cd build && make coverage
run: |
docker run --name jasminegraph-prerequisite -v $(pwd):/home/ubuntu/software/jasminegraph -d -t -i miyurud/jasminegraph /bin/bash
docker exec jasminegraph-prerequisite bash -c "pip install gcovr && cd /home/ubuntu/software/jasminegraph && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && make && make coverage"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "DEBUG")
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.0.zip
DOWNLOAD_EXTRACT_TIMESTAMP true
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.0.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
Expand Down
26 changes: 0 additions & 26 deletions install-prerequisites.sh

This file was deleted.

0 comments on commit 1a0ebc8

Please sign in to comment.