Commit e2b88ec0 authored by Pavel Reznikov's avatar Pavel Reznikov
Browse files

move webdriver-manager start to grunt

parent 4862a61a
......@@ -22,13 +22,12 @@ install:
- npm install -g bower
- bower install
- npm install
- webdriver-manager update --standalone
- ./node_modules/protractor/bin/webdriver-manager update --standalone
before_script:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- nohup bash -c "webdriver-manager start 2>&1 &"
script:
- npm run build
......
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
......@@ -9,6 +10,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-protractor-runner');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-protractor-webdriver');
grunt.initConfig({
sass: {
......@@ -114,8 +116,16 @@ module.exports = function(grunt) {
},
},
},
protractor_webdriver: {
all: {
options: {
command: 'webdriver-manager start',
}
}
}
});
grunt.registerTask('default', ['sass', 'cssmin', 'jshint', 'jscs', 'copy', 'uglify', 'doctoc']);
grunt.registerTask('e2e-test', ['connect', 'protractor']);
grunt.registerTask('e2e-test', ['connect', 'protractor_webdriver', 'protractor']);
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment