use test suite as submodule instead of using npm
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,3 +1,7 @@
|
||||
[submodule "ios/mapbox-gl-cocoa"]
|
||||
path = ios/mapbox-gl-cocoa
|
||||
url = https://github.com/mapbox/mapbox-gl-cocoa.git
|
||||
|
||||
[submodule "test/suite"]
|
||||
path = test/suite
|
||||
url = https://github.com/mapbox/mapbox-gl-test-suite.git
|
||||
|
||||
@@ -33,7 +33,6 @@ before_install:
|
||||
|
||||
install:
|
||||
- make config.gypi
|
||||
- ./scripts/travis_install_test_suite.sh
|
||||
- ulimit -c
|
||||
|
||||
before_script:
|
||||
|
||||
6
scripts/compare_images.sh
Executable file
6
scripts/compare_images.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
(cd ./test/suite/ && (./bin/compare_images.js || true))
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
|
||||
#
|
||||
# we'll need the test suite on Linux
|
||||
#
|
||||
mapbox_time "install_test_suite" \
|
||||
npm install git+https://github.com/mapbox/mapbox-gl-test-suite.git
|
||||
fi
|
||||
@@ -13,16 +13,18 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
|
||||
mapbox_time "compile_tests" \
|
||||
make test -j$JOBS BUILDTYPE=${BUILDTYPE}
|
||||
|
||||
mapbox_time "checkout_test_suite" \
|
||||
git submodule update --init test/suite
|
||||
|
||||
mapbox_time "run_tests" \
|
||||
./scripts/run_tests.sh
|
||||
|
||||
mapbox_time_start "compare_results"
|
||||
(cd ./node_modules/mapbox-gl-test-suite/ && (./bin/compare_images.js || true))
|
||||
mapbox_time_finish
|
||||
mapbox_time "compare_results" \
|
||||
./scripts/compare_images.sh
|
||||
|
||||
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
|
||||
mapbox_time_start "deploy_results"
|
||||
(cd ./node_modules/mapbox-gl-test-suite/ && ./bin/deploy_results.sh)
|
||||
(cd ./test/suite/ && ./bin/deploy_results.sh)
|
||||
mapbox_time_finish
|
||||
fi
|
||||
|
||||
@@ -39,10 +41,8 @@ elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
|
||||
#
|
||||
# build iOS
|
||||
#
|
||||
git submodule init
|
||||
|
||||
mapbox_time "load_submodules" \
|
||||
git submodule update
|
||||
mapbox_time "checkout_cocoa_bindings" \
|
||||
git submodule update --init ios/mapbox-gl-cocoa
|
||||
|
||||
mapbox_time "create_ios_project" \
|
||||
make build/ios/mapbox-gl-cocoa/app/mapboxgl-app.xcodeproj
|
||||
|
||||
2
test/fixtures/fixture_request.cpp
vendored
2
test/fixtures/fixture_request.cpp
vendored
@@ -16,7 +16,7 @@ const std::string base_directory = []{
|
||||
fn.erase(fn.find_last_of("/"));
|
||||
fn.erase(fn.find_last_of("/"));
|
||||
fn.erase(fn.find_last_of("/"));
|
||||
return fn + "/node_modules/mapbox-gl-test-suite/";
|
||||
return fn + "/test/suite/";
|
||||
}();
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -20,7 +20,7 @@ const std::string base_directory = []{
|
||||
std::string fn = __FILE__;
|
||||
fn.erase(fn.find_last_of("/"));
|
||||
fn.erase(fn.find_last_of("/"));
|
||||
return fn + "/node_modules/mapbox-gl-test-suite/";
|
||||
return fn + "/test/suite/";
|
||||
}();
|
||||
|
||||
auto display_ = std::make_shared<mbgl::HeadlessDisplay>();
|
||||
|
||||
1
test/suite
Submodule
1
test/suite
Submodule
Submodule test/suite added at b4db0dc1dc
Reference in New Issue
Block a user