Skip to content

Commit

Permalink
test docker reavis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahtisham.shahid authored and Ahtisham.shahid committed Aug 7, 2019
1 parent a555aa2 commit cb2d4d4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
language: python
python:
- "3.6"
# - "3.7"
services:
- mysql
env:
-DJANGO=2.2 DB=mysql
install: # => 5
- pip install -r requirements.txt
before_script: # => 6
- mysql -e 'create database test;' -u root
script: # => 7
- python manage.py test
- pylint --load-plugins pylint_django polls/
- pylint --load-plugins pylint_django posts/


#language: python
#python:
# - "3.6"
## - "3.7"
#services:
# - docker
#before_install:
# - docker-compose up
##before_script: # => 6
## - mysql -e 'create database test;' -u root
# - mysql
#env:
# -DJANGO=2.2 DB=mysql
#install: # => 5
# - pip install -r requirements.txt
#before_script: # => 6
# - mysql -e 'create database test;' -u root
#script: # => 7
# - docker exec dockerdajango_web_1 python manage.py test
# - docker exec dockerdajango_web_1 pylint --load-plugins pylint_django polls/
# - docker exec dockerdajango_web_1 pylint --load-plugins pylint_django posts/
# - python manage.py test
# - pylint --load-plugins pylint_django polls/
# - pylint --load-plugins pylint_django posts/


services:
- docker
before_install:
- docker-compose up
#before_script: # => 6
# - mysql -e 'create database test;' -u root
script: # => 7
- docker exec -t dockerdajango_web_1 python manage.py test
- docker exec -t dockerdajango_web_1 pylint --load-plugins pylint_django polls/
- docker exec -t dockerdajango_web_1 pylint --load-plugins pylint_django posts/
2 changes: 1 addition & 1 deletion posts/views/post_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_queryset(self):
"""get_queryset"""
# print(self.request.user.is_authenticated, 'user')
category = self.request.GET.get('category', None)
data = []
# data = []
if category is None:
data = Post.objects.all()
else:
Expand Down

0 comments on commit cb2d4d4

Please sign in to comment.