-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ahtisham.shahid
authored and
Ahtisham.shahid
committed
Aug 7, 2019
1 parent
a555aa2
commit cb2d4d4
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters