Skip to content

Commit

Permalink
- Installed mock, required by the tests.
Browse files Browse the repository at this point in the history
- Exits the build shell script if any of the commands fails.

PiperOrigin-RevId: 353310695
Change-Id: I7e4df5de32ec4b3c8ca03ab6f5cf7a03f8f61856
  • Loading branch information
joejoevictor authored and copybara-github committed Jan 22, 2021
1 parent c97ac31 commit 58fd850
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@

#!/usr/bin/env bash

# Exit when any command fails.
set -e

PYTHON_VERSION=${PYTHON_VERSION:-2.7}

pip install --upgrade setuptools pip
pip install --upgrade pylint pytest pytest-pylint pytest-runner
pip install termcolor
pip install hypothesis python-Levenshtein
pip install mock
python setup.py develop
python -m pytest # Run the tests without IPython.
pip install ipython
Expand Down

0 comments on commit 58fd850

Please sign in to comment.