Skip to content

Commit

Permalink
test outside of docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzhak committed Sep 27, 2016
1 parent a7bbe1b commit 97656af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,22 @@ env:
DOCKER_COMPOSE_VERSION: 1.8.0

before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
#
# Try to launch tests withotu docker
#
# - sudo rm /usr/local/bin/docker-compose
# - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
# - chmod +x docker-compose
# - sudo mv docker-compose /usr/local/bin
#
#script: docker-compose build && docker-compose up

before_install:
- pip install -r requirements.txt
- pip install coveralls

script: docker-compose build && docker-compose up
script:
- py.test --cov --cov-report term-missing

after_success:
- coveralls
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ version: '2'
services:
bot:
build: .
command: py.test --cov --cov-report term-missing
command: py.test --cov=botstory --cov-report term-missing
volumes:
- .:/usr/src/app

0 comments on commit 97656af

Please sign in to comment.