Skip to content

Commit

Permalink
Update for coveralls (#370)
Browse files Browse the repository at this point in the history
Update coveralls path
  • Loading branch information
jmsmkn committed Jun 15, 2017
1 parent c57734d commit aa62a74
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ ratings:
- "**.py"
- "**.rb"
exclude_paths:
- django/static/**/*
- django/ckeditor/static/**/*
- django/**/migrations/**/*
- app/static/**/*
- app/ckeditor/static/**/*
- app/**/migrations/**/*
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[paths]
source =
./app/
/app/
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ local.properties
.buildpath

# ignore any specific conf files, execept the default one
django/comic/settings/*.conf
!django/comic/settings/00_default.conf
app/comic/settings/*.conf
!app/comic/settings/00_default.conf

# Ignore intellij stuff
*.iml
Expand Down
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ before_install:
- 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
- pip install coveralls

install:
- docker-compose up --build -d

script: >-
docker-compose run web dockerize -wait tcp://db:3306 -timeout 120s
bash -c "
pip install coveralls
&& coverage run manage.py test
&& export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
&& coveralls
pip install coverage
&& coverage run --source='.' manage.py test
"
after_success:
- mv app/.coverage .coverage.docker
- coverage combine
- coveralls

after_script:
- docker-compose down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Testing

You can run the tests by invoking::

python django/manage.py test
python app/manage.py test

Getting the framework up and running
------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ services:
- db
- memcached
- dropbox
environment:
COVERALLS_REPO_TOKEN: "${COVERALLS_REPO_TOKEN}"
volumes:
- static:/static/
- .git:/.git:ro
- ./app:/app/
volumes_from:
- dropbox
Expand Down

0 comments on commit aa62a74

Please sign in to comment.