diff --git a/.travis.yml b/.travis.yml index 59775fd..432adb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,12 @@ before_script: script: - | if [ "$TRAVIS_OS_NAME" == "linux" ]; then - ENVS=`env | grep -iE '^(DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_)([A-Z]|_)*=' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' '` - docker run $ENVS --rm \ + docker run --rm \ + $(env | \ + grep -Eo '^[^\s=]*(DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_)[^\s=]*' | \ + sed '/^$/d;s/^/-e /' | \ + paste -sd ' ' \ + ) \ -v ${PWD}:/project \ -v ~/.cache/electron:/root/.cache/electron \ -v ~/.cache/electron-builder:/root/.cache/electron-builder \