export function to subshells

This commit is contained in:
Konstantin Käfer
2014-10-16 05:56:18 -07:00
parent 3d6304e8c3
commit 0d213283c0
6 changed files with 3 additions and 8 deletions

View File

@@ -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

View File

@@ -1,7 +1,5 @@
#!/usr/bin/env bash
. ./scripts/travis_helper.sh
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
export DISPLAY=:99.0

View File

@@ -3,8 +3,6 @@
set -e
set -o pipefail
. ./scripts/travis_helper.sh
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
#
# install Linux dependencies

View File

@@ -8,3 +8,5 @@ function mapbox_time {
travis_time_finish
travis_fold end "${NAME}"
}
export -f mapbox_time

View File

@@ -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

View File

@@ -3,8 +3,6 @@
set -e
set -o pipefail
. ./scripts/travis_helper.sh
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
#
# build & test Linux