Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

chore(scripts): fail on pipe failures #1291

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/analyze.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail

. $(dirname $0)/env.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/false
set -e
set -o errexit pipefail

if [[ -z $ENV_SET ]]; then
export ENV_SET=1
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Run E2E / Protractor tests.

set -e
set -o errexit pipefail

. $(dirname $0)/env.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/run-test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail

. $(dirname $0)/env.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/sauce/sauce_connect_setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail

# Setup and start Sauce Connect for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-expression-extractor.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail

. $(dirname $0)/env.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/after-success.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -o errexit pipefail

echo '*******************'
echo '** AFTER_SUCCESS **'
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail
. "$(dirname $0)/../env.sh"

echo '==========='
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail

sh -e /etc/init.d/xvfb start

Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/presubmit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -o errexit pipefail

# If we're on the presubmit branch, the dev Dart release, and all unit
# tests pass, merge the presubmit branch into master and push it.
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -o errexit pipefail


echo Fetch Dart channel: $CHANNEL
Expand Down