wip
This commit is contained in:
parent
d9e5a3d6de
commit
2b972f5844
42
.github/workflows/osrm-backend.yml
vendored
42
.github/workflows/osrm-backend.yml
vendored
@ -57,27 +57,27 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
.\scripts\ci\windows-build.bat
|
.\scripts\ci\windows-build.bat
|
||||||
- name: Run node tests
|
# - name: Run node tests
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
./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
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: ./scripts/ci/node_package.sh
|
# run: ./scripts/ci/node_package.sh
|
||||||
- name: Publish Node package
|
# - name: Publish Node package
|
||||||
if: ${{ env.PUBLISH == 'On' }}
|
# if: ${{ env.PUBLISH == 'On' }}
|
||||||
uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
with:
|
# with:
|
||||||
allowUpdates: true
|
# allowUpdates: true
|
||||||
artifactErrorsFailBuild: true
|
# artifactErrorsFailBuild: true
|
||||||
artifacts: build/stage/**/*.tar.gz
|
# artifacts: build/stage/**/*.tar.gz
|
||||||
omitBody: true
|
# omitBody: true
|
||||||
omitBodyDuringUpdate: true
|
# omitBodyDuringUpdate: true
|
||||||
omitName: true
|
# omitName: true
|
||||||
omitNameDuringUpdate: true
|
# omitNameDuringUpdate: true
|
||||||
replacesArtifacts: true
|
# replacesArtifacts: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
format-taginfo-docs:
|
format-taginfo-docs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -29,65 +29,65 @@ msbuild OSRM.sln ^
|
|||||||
/nologo
|
/nologo
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
CD %PROJECT_DIR%\build
|
@REM CD %PROJECT_DIR%\build
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running extractor-tests.exe ...
|
@REM ECHO running extractor-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\extractor-tests.exe
|
@REM unit_tests\%CONFIGURATION%\extractor-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running contractor-tests.exe ...
|
@REM ECHO running contractor-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\contractor-tests.exe
|
@REM unit_tests\%CONFIGURATION%\contractor-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running engine-tests.exe ...
|
@REM ECHO running engine-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\engine-tests.exe
|
@REM unit_tests\%CONFIGURATION%\engine-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running util-tests.exe ...
|
@REM ECHO running util-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\util-tests.exe
|
@REM unit_tests\%CONFIGURATION%\util-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running server-tests.exe ...
|
@REM ECHO running server-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\server-tests.exe
|
@REM unit_tests\%CONFIGURATION%\server-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running partitioner-tests.exe ...
|
@REM ECHO running partitioner-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\partitioner-tests.exe
|
@REM unit_tests\%CONFIGURATION%\partitioner-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
ECHO running customizer-tests.exe ...
|
@REM ECHO running customizer-tests.exe ...
|
||||||
unit_tests\%CONFIGURATION%\customizer-tests.exe
|
@REM unit_tests\%CONFIGURATION%\customizer-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
SET test_region=monaco
|
@REM SET test_region=monaco
|
||||||
SET test_region_ch=ch\monaco
|
@REM SET test_region_ch=ch\monaco
|
||||||
SET test_region_mld=mld\monaco
|
@REM SET test_region_mld=mld\monaco
|
||||||
SET test_osm=%test_region%.osm.pbf
|
@REM SET test_osm=%test_region%.osm.pbf
|
||||||
COPY %PROJECT_DIR%\test\data\%test_region%.osm.pbf %test_osm%
|
@REM COPY %PROJECT_DIR%\test\data\%test_region%.osm.pbf %test_osm%
|
||||||
%CONFIGURATION%\osrm-extract.exe -p %PROJECT_DIR%\profiles\car.lua %test_osm%
|
@REM %CONFIGURATION%\osrm-extract.exe -p %PROJECT_DIR%\profiles\car.lua %test_osm%
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
MKDIR ch
|
@REM MKDIR ch
|
||||||
XCOPY %test_region%.osrm.* ch\
|
@REM XCOPY %test_region%.osrm.* ch\
|
||||||
XCOPY %test_region%.osrm ch\
|
@REM XCOPY %test_region%.osrm ch\
|
||||||
MKDIR mld
|
@REM MKDIR mld
|
||||||
XCOPY %test_region%.osrm.* mld\
|
@REM XCOPY %test_region%.osrm.* mld\
|
||||||
XCOPY %test_region%.osrm mld\
|
@REM XCOPY %test_region%.osrm mld\
|
||||||
%CONFIGURATION%\osrm-contract.exe %test_region_ch%.osrm
|
@REM %CONFIGURATION%\osrm-contract.exe %test_region_ch%.osrm
|
||||||
%CONFIGURATION%\osrm-partition.exe %test_region_mld%.osrm
|
@REM %CONFIGURATION%\osrm-partition.exe %test_region_mld%.osrm
|
||||||
%CONFIGURATION%\osrm-customize.exe %test_region_mld%.osrm
|
@REM %CONFIGURATION%\osrm-customize.exe %test_region_mld%.osrm
|
||||||
XCOPY /Y ch\*.* ..\test\data\ch\
|
@REM XCOPY /Y ch\*.* ..\test\data\ch\
|
||||||
XCOPY /Y mld\*.* ..\test\data\mld\
|
@REM XCOPY /Y mld\*.* ..\test\data\mld\
|
||||||
unit_tests\%CONFIGURATION%\library-tests.exe
|
@REM unit_tests\%CONFIGURATION%\library-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
:ERROR
|
@REM :ERROR
|
||||||
ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
@REM ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
ECHO ERRORLEVEL^: %ERRORLEVEL%
|
@REM ECHO ERRORLEVEL^: %ERRORLEVEL%
|
||||||
SET EL=%ERRORLEVEL%
|
@REM SET EL=%ERRORLEVEL%
|
||||||
|
|
||||||
:DONE
|
@REM :DONE
|
||||||
ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
@REM ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
EXIT /b %EL%
|
@REM EXIT /b %EL%
|
||||||
|
Loading…
Reference in New Issue
Block a user