Skip to content

Commit 7934c21

Browse files
committed
Added Travis build dir default for local debugging
1 parent 7df8912 commit 7934c21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/test_npm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# Set build dir to current working dir if not set by Travis, just so it's easy
17+
# to locally run this script.
18+
if [ -z $TRAVIS_BUILD_DIR ]; then
19+
TRAVIS_BUILD_DIR=`pwd`
20+
fi
21+
1622
# Run yarn install so that dev dependencies are available
1723
yarn install && cd ${TRAVIS_BUILD_DIR}/node_modules/closure-compiler-npm && yarn install
1824

0 commit comments

Comments
 (0)