From 832f5406d48ef0b410f41980bffa4f42e7421555 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Tue, 19 Aug 2014 12:24:03 -0700 Subject: [PATCH 1/3] bring back Linux tests in separate script --- scripts/run_linux_tests.sh | 10 ++++++++++ scripts/travis_script.sh | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100755 scripts/run_linux_tests.sh diff --git a/scripts/run_linux_tests.sh b/scripts/run_linux_tests.sh new file mode 100755 index 000000000..716594824 --- /dev/null +++ b/scripts/run_linux_tests.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e +set -o pipefail + +cd build/Testing + +for TEST in ./test_* ; do + ${TEST} +done diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index 61c2e5205..015e74ebe 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -9,11 +9,7 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # make linux -j4 BUILDTYPE=${BUILDTYPE} make test -j4 BUILDTYPE=${BUILDTYPE} - cd build/Testing - for TEST in ./test_* ; do - ${TEST} - done - cd ../.. + ./scripts/run_linux_tests.sh (cd ./node_modules/mapbox-gl-test-suite/ && (./bin/compare_images.js || true; ./bin/deploy_results.sh)) elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then # From d094998885ab8211cbf894701bf6dd4e869e14d5 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 20 Aug 2014 11:21:16 -0700 Subject: [PATCH 2/3] rename tests script --- scripts/{run_linux_tests.sh => run_tests.sh} | 0 scripts/travis_script.sh | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename scripts/{run_linux_tests.sh => run_tests.sh} (100%) diff --git a/scripts/run_linux_tests.sh b/scripts/run_tests.sh similarity index 100% rename from scripts/run_linux_tests.sh rename to scripts/run_tests.sh diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index 015e74ebe..4f02c5b7e 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -9,7 +9,7 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # make linux -j4 BUILDTYPE=${BUILDTYPE} make test -j4 BUILDTYPE=${BUILDTYPE} - ./scripts/run_linux_tests.sh + ./scripts/run_tests.sh (cd ./node_modules/mapbox-gl-test-suite/ && (./bin/compare_images.js || true; ./bin/deploy_results.sh)) elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then # From 40ee0dfb5f9fd0b17cf0c302776fba0be8bc0790 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 20 Aug 2014 16:54:43 -0400 Subject: [PATCH 3/3] add AWS_S3_BUCKET env var to .travis.yml --- .travis.yml | 1 + setup-libraries.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b641c1158..d2d77a43b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ env: - secure: "bG4YYWMfl9API0MSRgmOaJrlGLv06tRg9KJNawBieZvBJbITPpxVGJZT3/l/SEJ+Rl15e2dRex4k+MGQlmT2SqPQxTEYWv1qxNigKPPcla7IWeNmWWqW8uVvFjdglojgBOK2k/xErVQtA4zDfi3mwSXH4DKwquXWsoEKmX2SV7M=" - secure: "Cbvap9ubVKgjPe3hUhI6JGeDZzBXHpOG9RaYKh+SdoIPhKnlJiNOYm1egomi+e4uqJInlFKuVHTw7Ng9Cun6Zm0jIxpkSchv1GpsR7hmB3UGnGed19Dw8121FwuUaktN+4YnbVlsyd+u8EHD3+h58t4eELrLrZolM4rS7DL6caA=" - secure: "RiBIBfVhhaMjU5ksuwJO3shdvG9FpinBjdSv4co9jg9171SR8edNriedHjVKSIeBhSGNmZmX+twS3dJS/By6tl/LKh9sTynA+ZAYYljkE7jn881B/gMrlYvdAA6og5KvkhV1/0iJWlhuZrMTkhpDR200iLgg3EWBhWjltzmDW/I=" + - AWS_S3_BUCKET=mapbox-gl-testing before_install: - source ./scripts/flags.sh diff --git a/setup-libraries.sh b/setup-libraries.sh index 9c83595a3..92ff675e9 100755 --- a/setup-libraries.sh +++ b/setup-libraries.sh @@ -66,7 +66,7 @@ export CXX11=true if [ ${UNAME} = 'Darwin' ]; then if [ ! -z "${TRAVIS:-}" ]; then - if aws s3 cp s3://mapbox-gl-testing/dependencies/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz ./out/ ; then + if aws s3 cp s3://${AWS_S3_BUCKET}/dependencies/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz ./out/ ; then rm -rf out/build-cpp11-libcpp-universal tar -xzf out/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz fi @@ -114,7 +114,7 @@ source MacOSX.sh if [ ! -z "${TRAVIS:-}" ]; then tar -zcf out/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz out/build-cpp11-libcpp-universal - aws s3 cp out/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz s3://mapbox-gl-testing/dependencies/ + aws s3 cp out/build-cpp11-libcpp-universal_${MP_HASH}.tar.gz s3://${AWS_S3_BUCKET}/dependencies/ fi fi @@ -129,7 +129,7 @@ cd ../../ elif [ ${UNAME} = 'Linux' ]; then if [ ! -z "${TRAVIS:-}" ]; then - if aws s3 cp s3://mapbox-gl-testing/dependencies/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz ./out/ ; then + if aws s3 cp s3://${AWS_S3_BUCKET}/dependencies/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz ./out/ ; then rm -rf out/build-cpp11-libstdcpp-gcc-x86_64-linux tar -xzf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz fi @@ -146,7 +146,7 @@ source Linux.sh if [ ! -z "${TRAVIS:-}" ]; then if ! tar --compare -zf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz ; then tar -zcf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz out/build-cpp11-libstdcpp-gcc-x86_64-linux - aws s3 cp out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz s3://mapbox-gl-testing/dependencies/ + aws s3 cp out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz s3://${AWS_S3_BUCKET}/dependencies/ fi fi