Add alternative test:acceptance:docker command, using separate docker repo

This commit is contained in:
Shane Kilkelly 2016-07-18 10:36:03 +01:00
parent 4c0dc5a0ef
commit c446b20375

View file

@ -82,6 +82,8 @@ module.exports = (grunt) ->
"""
dockerTests:
command: 'docker run -v "$(pwd):/document-updater" --rm --name doc-updater-test sharelatex-docupdater-tests'
dockerTests2:
command: 'docker run -v "$(pwd):/app" --rm sl-acceptance-test-runner'
availabletasks:
tasks:
@ -144,6 +146,12 @@ module.exports = (grunt) ->
['shell:buildDockerImage', 'shell:dockerTests']
)
grunt.registerTask(
'test:acceptance:docker2',
"Run acceptance tests inside docker container",
['shell:dockerTests2']
)
grunt.registerTask 'test:acceptance', 'Run the acceptance tests (use --grep=<regex> for individual tests)', ['compile:acceptance_tests', 'mochaTest:acceptance']
grunt.registerTask 'run', "Compile and run the document-updater-sharelatex server", ['compile', 'bunyan', 'execute']