Skip to content

Commit 58fd850

Browse files
joejoevictorcopybara-github
authored andcommitted
- Installed mock, required by the tests.
- Exits the build shell script if any of the commands fails. PiperOrigin-RevId: 353310695 Change-Id: I7e4df5de32ec4b3c8ca03ab6f5cf7a03f8f61856
1 parent c97ac31 commit 58fd850

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/scripts/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414

1515
#!/usr/bin/env bash
1616

17+
# Exit when any command fails.
18+
set -e
19+
1720
PYTHON_VERSION=${PYTHON_VERSION:-2.7}
1821

1922
pip install --upgrade setuptools pip
2023
pip install --upgrade pylint pytest pytest-pylint pytest-runner
2124
pip install termcolor
2225
pip install hypothesis python-Levenshtein
26+
pip install mock
2327
python setup.py develop
2428
python -m pytest # Run the tests without IPython.
2529
pip install ipython

0 commit comments

Comments
 (0)