Skip to content

Commit

Permalink
Make CI scripts fail on any error (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Nov 8, 2019
1 parent 2fa6454 commit de9485f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .circleci/ci-run.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#!/usr/bin/env bash
set -e

source .venv/bin/activate

pylint jake

LINTER_STATUS=$?
if [ $LINTER_STATUS -ne 0 ]; then
echo “failed linter status: $status
exit 1
fi

python3 -m unittest discover
2 changes: 1 addition & 1 deletion .circleci/ci-setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
set -e

# intended to be run from directory above this one.

# Setup a proper path, I call my virtualenv dir ".venv"
PATH=$WORKSPACE/.venv/bin:$PATH
lsb_release -a
python3 --version
if [ ! -d ".venv" ]; then
# use python3 to create .venv
Expand Down

0 comments on commit de9485f

Please sign in to comment.