Get rid of -u (expansion of undefined variable) setting (#26907)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26907

Somehow CircleCI broke this on update to their OS X workers;
the error looks like

    /bin/bash: line 1: PROMPT_COMMAND: unbound variable

I'm not sure if I've killed all the occurrences that are necessary,
let's see!

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D17607486

Pulled By: ezyang

fbshipit-source-id: 5e9a7ff69d4b18e759965bf97c67d38404841187
This commit is contained in:
Edward Yang 2019-09-26 13:28:20 -07:00 committed by Facebook Github Bot
parent b2f671a3fb
commit 9f0deb4725
2 changed files with 14 additions and 5 deletions

View File

@ -783,7 +783,9 @@ jobs:
name: Build
no_output_timeout: "1h"
command: |
set -eux -o pipefail
# Do not set -u here; there is some problem with CircleCI
# variable expansion with PROMPT_COMMAND
set -ex -o pipefail
script="/Users/distiller/project/pytorch/.circleci/scripts/binary_macos_build.sh"
cat "$script"
source "$script"
@ -792,7 +794,9 @@ jobs:
name: Test
no_output_timeout: "1h"
command: |
set -eux -o pipefail
# Do not set -u here; there is some problem with CircleCI
# variable expansion with PROMPT_COMMAND
set -ex -o pipefail
script="/Users/distiller/project/pytorch/.circleci/scripts/binary_macos_test.sh"
cat "$script"
source "$script"
@ -864,6 +868,7 @@ jobs:
script="/Users/distiller/project/.circleci/scripts/binary_ios_upload.sh"
cat "$script"
source "$script"
setup:
docker:
- image: circleci/python:3.7.3

View File

@ -174,7 +174,9 @@
name: Build
no_output_timeout: "1h"
command: |
set -eux -o pipefail
# Do not set -u here; there is some problem with CircleCI
# variable expansion with PROMPT_COMMAND
set -ex -o pipefail
script="/Users/distiller/project/pytorch/.circleci/scripts/binary_macos_build.sh"
cat "$script"
source "$script"
@ -183,7 +185,9 @@
name: Test
no_output_timeout: "1h"
command: |
set -eux -o pipefail
# Do not set -u here; there is some problem with CircleCI
# variable expansion with PROMPT_COMMAND
set -ex -o pipefail
script="/Users/distiller/project/pytorch/.circleci/scripts/binary_macos_test.sh"
cat "$script"
source "$script"
@ -254,4 +258,4 @@
command: |
script="/Users/distiller/project/.circleci/scripts/binary_ios_upload.sh"
cat "$script"
source "$script"
source "$script"