diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-10-16 05:56:18 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-10-16 05:56:18 -0700 |
commit | 0d213283c0cc7bf7ebd06210b42577c9b8dece43 (patch) | |
tree | 091631338913eaae4deb3167650acbde0ae1cea0 | |
parent | 3d6304e8c3d9433199ae1b928fcf935ce1a43bb8 (diff) | |
download | qtlocation-mapboxgl-0d213283c0cc7bf7ebd06210b42577c9b8dece43.tar.gz |
export function to subshells
-rw-r--r-- | .travis.yml | 1 | ||||
-rwxr-xr-x | scripts/flags.sh | 2 | ||||
-rwxr-xr-x | scripts/travis_before_install.sh | 2 | ||||
-rwxr-xr-x | scripts/travis_helper.sh | 2 | ||||
-rwxr-xr-x | scripts/travis_install.sh | 2 | ||||
-rwxr-xr-x | scripts/travis_script.sh | 2 |
6 files changed, 3 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 5a33459717..78b2754a80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,7 @@ env: - AWS_S3_BUCKET: 'node-mapbox-gl-native' before_install: +- source ./scripts/travis_helper.sh - source ./scripts/flags.sh - ./scripts/travis_before_install.sh diff --git a/scripts/flags.sh b/scripts/flags.sh index 83a4138210..1cb8b766e2 100755 --- a/scripts/flags.sh +++ b/scripts/flags.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -. ./scripts/travis_helper.sh - if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then export DISPLAY=:99.0 diff --git a/scripts/travis_before_install.sh b/scripts/travis_before_install.sh index 654c9dcc68..d3add138c1 100755 --- a/scripts/travis_before_install.sh +++ b/scripts/travis_before_install.sh @@ -3,8 +3,6 @@ set -e set -o pipefail -. ./scripts/travis_helper.sh - if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # # install Linux dependencies diff --git a/scripts/travis_helper.sh b/scripts/travis_helper.sh index 0a2aab663d..0c54e3dd05 100755 --- a/scripts/travis_helper.sh +++ b/scripts/travis_helper.sh @@ -8,3 +8,5 @@ function mapbox_time { travis_time_finish travis_fold end "${NAME}" } + +export -f mapbox_time diff --git a/scripts/travis_install.sh b/scripts/travis_install.sh index 9d17fee7f8..cb2422d70c 100755 --- a/scripts/travis_install.sh +++ b/scripts/travis_install.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -. ./scripts/travis_helper.sh - if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # # we'll need the test suite on Linux diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index d4ebeb12d6..a9c26f34f7 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -3,8 +3,6 @@ set -e set -o pipefail -. ./scripts/travis_helper.sh - if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # # build & test Linux |