summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authoradityacp2020-03-05 15:16:35 +0530
committeradityacp2020-03-05 15:16:35 +0530
commit7ce5d7b360c9eb27964a6f1ff984d127b4aba551 (patch)
treea5e3b5bc109982d29cc5565d066e85d7f5005b7b /.travis.yml
parenteb5d4f74b22066c074afb4ffe55b2dc71258d2e8 (diff)
downloadonline_test-7ce5d7b360c9eb27964a6f1ff984d127b4aba551.tar.gz
online_test-7ce5d7b360c9eb27964a6f1ff984d127b4aba551.tar.bz2
online_test-7ce5d7b360c9eb27964a6f1ff984d127b4aba551.zip
Remove deprecated sudo, add migrate command
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index f7053af..d7515a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,31 +9,30 @@ services:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y scilab
- - "export DISPLAY=:99.0"
- - sleep 3 # give xvfb some time to start
+ - export DISPLAY=:99.0
# command to install dependencies
install:
- pip install -r requirements/requirements-common.txt
- pip install codecov
- python setup.py develop
+
+before_script:
+ - python manage.py migrate auth
- python manage.py migrate
# command to run tests and coverage
script:
- coverage erase
- - coverage run -p manage.py test -v 2 --settings online_test.test_settings yaksh
- - coverage run -p manage.py test -v 2 --settings online_test.test_settings grades
- - coverage run -p manage.py test -v 2 --settings online_test.test_settings yaksh.live_server_tests.load_test
+ - coverage run -p manage.py test -v 2 yaksh
+ - coverage run -p manage.py test -v 2 grades
+ - coverage run -p manage.py test -v 2 yaksh.live_server_tests.load_test
after_success:
- coverage combine
- coverage report
- codecov
-sudo:
- required
-
dist:
trusty