Merge pull request #3274 from Project-OSRM/customize-tool-root
Improve support for customized build directory
This commit is contained in:
		
						commit
						8137e95fbb
					
				| @ -137,7 +137,8 @@ install: | ||||
|     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||||
|       ./scripts/check_taginfo.py taginfo.json profiles/car.lua | ||||
|     fi | ||||
|   - mkdir build && pushd build | ||||
|   - export OSRM_BUILD_DIR="$(pwd)/build-osrm" | ||||
|   - mkdir ${OSRM_BUILD_DIR} && pushd ${OSRM_BUILD_DIR} | ||||
|   - export CC=${CCOMPILER} CXX=${CXXCOMPILER} | ||||
|   - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DENABLE_MASON=${ENABLE_MASON:-OFF} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-OFF} -DENABLE_COVERAGE=${ENABLE_COVERAGE:-OFF} -DENABLE_SANITIZER=${ENABLE_SANITIZER:-OFF} -DBUILD_TOOLS=ON -DBUILD_COMPONENTS=${BUILD_COMPONENTS:-OFF} -DENABLE_CCACHE=ON | ||||
|   - echo "travis_fold:start:MAKE" | ||||
| @ -172,7 +173,7 @@ script: | ||||
|   - echo "travis_fold:end:BENCHMARK" | ||||
|   - ./example/build/osrm-example test/data/monaco.osrm | ||||
|   # All tests assume to be run from the build directory | ||||
|   - pushd build | ||||
|   - pushd ${OSRM_BUILD_DIR} | ||||
|   - ./unit_tests/library-tests ../test/data/monaco.osrm | ||||
|   - ./unit_tests/extractor-tests | ||||
|   - ./unit_tests/engine-tests | ||||
|  | ||||
| @ -1,12 +1,12 @@ | ||||
| DATA_NAME:=monaco | ||||
| DATA_URL:=https://s3.amazonaws.com/mapbox/osrm/testing/$(DATA_NAME).osm.pbf | ||||
| DATA_POLY_URL:=https://s3.amazonaws.com/mapbox/osrm/testing/$(DATA_NAME).poly | ||||
| TOOL_ROOT:=../../build | ||||
| OSRM_BUILD_DIR?=../../build | ||||
| PROFILE_ROOT:=../../profiles | ||||
| SCRIPT_ROOT:=../../scripts | ||||
| OSRM_EXTRACT:=$(TOOL_ROOT)/osrm-extract | ||||
| OSRM_CONTRACT:=$(TOOL_ROOT)/osrm-contract | ||||
| OSRM_ROUTED:=$(TOOL_ROOT)/osrm-routed | ||||
| OSRM_EXTRACT:=$(OSRM_BUILD_DIR)/osrm-extract | ||||
| OSRM_CONTRACT:=$(OSRM_BUILD_DIR)/osrm-contract | ||||
| OSRM_ROUTED:=$(OSRM_BUILD_DIR)/osrm-routed | ||||
| POLY2REQ:=$(SCRIPT_ROOT)/poly2req.js | ||||
| TIMER:=$(SCRIPT_ROOT)/timer.sh | ||||
| PROFILE:=$(PROFILE_ROOT)/car.lua | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user