Skip to content

Commit

Permalink
try coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsx committed Dec 2, 2015
1 parent 384797b commit d94f103
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 39 deletions.
33 changes: 18 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,30 @@ addons:

env:
global:
- secure: NWiSBCHFB6LbTMget2qLIdqZlx0zeu3j+Y7Lsqb8kuYXyT2IUBGFVedcGWuGv/9Mzypb80EQWtVTokA3/3QIbesqr29uG95pMPHiYWLdnTO6UHcLMcNXiSzhBGdRDZ40iHSVv2dDHs4GNwGOH5+UCA0z3j7SWmChuFbNXh+Vsqw=
# coveralls divio
# - secure: NWiSBCHFB6LbTMget2qLIdqZlx0zeu3j+Y7Lsqb8kuYXyT2IUBGFVedcGWuGv/9Mzypb80EQWtVTokA3/3QIbesqr29uG95pMPHiYWLdnTO6UHcLMcNXiSzhBGdRDZ40iHSVv2dDHs4GNwGOH5+UCA0z3j7SWmChuFbNXh+Vsqw=
# coveralls finalangel
- secure: HhAmAArxQg4FEufv40M6nxwSnCz2BE3QkLln8ux8DxgZrs7ENDZEMHrcCeH3QXshAnowzpgmEMIiZXfQZ35tBC7uWyq4CUgVrbxv1SNPpjDmAgb21nFEZRJR88+erpkd9H6oYXm4JWOMc3f/FkR9JjugFCrcHiHc4zGLCsmLNNQ=
# sauce labs username
- secure: g40WBtWZyN0sGwEZnBHZPKF3J9/e+y/ncftTI6U5iNM+pVa62dSVoZsyC9YDxZ7wbK+WMcYez5MNtYbbFQD+kjBLeUbpfJ9LnOwEtZU0bl3FOYhRJZmBfWXBKyWAIx7CIspkU64jaVGgC4F7dYptileC94rMGHsYzL3nqJ4XnUY=
# sauce labs access token
- secure: Zos3su5QFeEwDCuibiE4nejeDgjgvw59IcEiWTw2L9tzZBBvaXe0plMDum7AeLIeNalYFericsIAegNoix/jfxOC92Nyq2Izh15vk08YvZCLFMUVjtg+ENb84/Km5018VVU6W+7HmfJDDN0fvHzdjHoBLN99BWSQ7XddHQWUs7g=
matrix:
- DJANGO=1.9 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
# - DJANGO=1.9 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
- DJANGO=1.8 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0 MIGRATE_OPTION='--migrate'
- DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0 MIGRATE_OPTION='--migrate'
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
- DJANGO=1.7 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.6 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0 MIGRATE_OPTION='--migrate'
- DJANGO=1.6 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0 MIGRATE_OPTION='--migrate'
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
# - DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
# - DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0 MIGRATE_OPTION='--migrate'
# - DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
# - DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
# - DJANGO=1.7 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
# - DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
# - DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
# - DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
# - DJANGO=1.6 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0 MIGRATE_OPTION='--migrate'
# - DJANGO=1.6 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
# - DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0 MIGRATE_OPTION='--migrate'
# - DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
# - DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
- FRONTEND=1 UNIT=1
- FRONTEND=1 LINT=1

Expand Down
16 changes: 11 additions & 5 deletions cms/tests/frontend/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,16 @@ module.exports = function (config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
// add specific files for coverage
// 'static/js/base.js': ['coverage'],
// 'static/js/addons/cl.utils.js': ['coverage'],
// for fixtures
'cms/static/cms/js/modules/cms.base.js': ['coverage'],
'cms/static/cms/js/modules/cms.messages.js': ['coverage'],
'cms/static/cms/js/modules/cms.modal.js': ['coverage'],
'cms/static/cms/js/modules/cms.sideframe.js': ['coverage'],
'cms/static/cms/js/modules/cms.clipboard.js': ['coverage'],
'cms/static/cms/js/modules/cms.plugins.js': ['coverage'],
'cms/static/cms/js/modules/cms.structureboard.js': ['coverage'],
'cms/static/cms/js/modules/cms.navigation.js': ['coverage'],
'cms/static/cms/js/modules/cms.toolbar.js': ['coverage'],
'cms/static/cms/js/modules/cms.tooltip.js': ['coverage'],
'**/*.html': ['html2js'],
'cms/tests/frontend/unit/**/*.js': ['babel'],
// '*|)}>#*.json': ['json_fixtures']
Expand Down Expand Up @@ -122,7 +128,7 @@ module.exports = function (config) {
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'coverage', 'saucelabs'],
reporters: ['progress', 'coverage', 'coveralls', 'saucelabs'],

// web server port
port: 9876,
Expand Down
Loading

0 comments on commit d94f103

Please sign in to comment.