Skip to content

Client tests #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,25 @@ env:
- DJANGOVER=django17
- DJANGOVER=django18
- DJANGOVER=django19
- CLIENT_TESTS=1

matrix:
exclude:
- python: 3.5
env: DJANGOVER=django17
- python: 2.7
env: CLIENT_TESTS=1
- python: 3.4
env: CLIENT_TESTS=1

install:
- pip install tox

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3

script:
- export TOX_ENV=py${TRAVIS_PYTHON_VERSION/./}-${DJANGOVER}
- "if [[ $CLIENT_TESTS == '1' ]]; then export TOX_ENV=client-tests; else export TOX_ENV=py${TRAVIS_PYTHON_VERSION/./}-${DJANGOVER}; fi"
- tox -r -e "$TOX_ENV"
2 changes: 1 addition & 1 deletion client/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function(config) {
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: ['ChromeCanary'],
browsers: ['Firefox'],

// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = coverage-clean, py{27,34,35}-django{18,19}, py{27,34}-django17, coverage-report
envlist = client-tests, coverage-clean, py{27,34,35}-django{18,19}, py{27,34}-django17, coverage-report
skipsdist = true

[testenv]
Expand Down Expand Up @@ -36,7 +36,9 @@ whitelist_externals =
coverage

[testenv:client-tests]
changedir = {toxinidir}/client
commands =
cd client
npm install
npm run test-single-run
whitelist_externals =
npm