Skip to content

Commit

Permalink
run tests before build
Browse files Browse the repository at this point in the history
avoids triggering build if tests don't pass
  • Loading branch information
minrk committed Nov 13, 2017
1 parent 4dac88f commit c24c4fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
@@ -0,0 +1,3 @@
[run]
omit =
binderhub/tests/*
4 changes: 1 addition & 3 deletions .travis.yml
Expand Up @@ -4,7 +4,6 @@ python:
services:
- docker
install:
- pip install --no-cache-dir ruamel.yaml
- mkdir -p bin
- export PATH=$PWD/bin:$PATH
- curl -ssL https://storage.googleapis.com/kubernetes-helm/helm-v2.6.1-linux-amd64.tar.gz
Expand All @@ -18,14 +17,13 @@ install:
chmod +x bin/git-crypt
- pip install . -r dev-requirements.txt
script:
- pytest -v --cov binderhub
- |
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker login -u ${DOCKER_USERNAME} -p "${DOCKER_PASSWORD}"
export PUSH="--push"
fi
- "./helm-chart/build.py build --commit-range ${TRAVIS_COMMIT_RANGE} $PUSH"
- pip install pytest
- pytest -v
branches:
only:
- master
Expand Down

0 comments on commit c24c4fb

Please sign in to comment.