This commit is contained in:
Siarhei Fedartsou 2024-06-08 12:08:19 +02:00
parent f560b93ce1
commit 9a4aaaa2c7
2 changed files with 17 additions and 0 deletions

View File

@ -64,6 +64,17 @@ jobs:
- name: Run node tests - name: Run node tests
shell: bash shell: bash
run: | run: |
# prepare data
pushd build
cp ../test/data/ch/monaco.osm.pbf .
Release\osrm-extract -p ../profiles/car.lua monaco.osm.pbf
mkdir ch
cp ./monaco.osrm* ch/
Release\osrm-contract.exe ch/monaco.osrm
cp -rf ch/* ../test/data/ch/
popd
./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm ./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm
node test/nodejs/index.js node test/nodejs/index.js
- name: Build Node package - name: Build Node package

View File

@ -89,6 +89,12 @@ else()
add_definitions(-DOSRM_PROJECT_DIR="${CMAKE_CURRENT_SOURCE_DIR}") add_definitions(-DOSRM_PROJECT_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
endif() endif()
if(MSVC)
# make MSVC less verbose
add_compile_options("/p:WarningLevel=0 /clp:NoSummary;NoItemAndPropertyList;ErrorsOnly /p:RunCodeAnalysis=false")
endif()
# these two functions build up custom variables: # these two functions build up custom variables:
# DEPENDENCIES_INCLUDE_DIRS and OSRM_DEFINES # DEPENDENCIES_INCLUDE_DIRS and OSRM_DEFINES
# These variables we want to pass to # These variables we want to pass to