Skip to content

Commit

Permalink
Merge pull request #377 from troolee/tests/end-to-end
Browse files Browse the repository at this point in the history
move webdriver-manager start to grunt
  • Loading branch information
troolee committed Mar 2, 2016
2 parents de83c62 + e2b88ec commit 208a8ba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
Expand All @@ -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: {
Expand Down Expand Up @@ -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']);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"grunt-doctoc": "^0.1.1",
"grunt-jscs": "^2.7.0",
"grunt-protractor-runner": "^3.0.0",
"grunt-protractor-webdriver": "^0.2.5",
"grunt-sass": "^1.1.0",
"jasmine-core": "^2.4.1",
"karma": "^0.13.21",
Expand Down

0 comments on commit 208a8ba

Please sign in to comment.