Skip to content

Commit 830bd38

Browse files
committed
adding connect:testserver
1 parent d3df7b1 commit 830bd38

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ before_script:
88
- "export DISPLAY=:99.0"
99
- "sh -e /etc/init.d/xvfb start"
1010
- sleep 3
11-
- grunt # start a Web server
11+
- grunt connect:testserver # start a Web server
1212
- sleep 3
1313

1414
script:

Gruntfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ module.exports = function (grunt) {
8484
livereload:true,
8585
open: true
8686
}
87+
},
88+
testserver: {
89+
options: {
90+
port: 3030,
91+
base: '.',
92+
keepalive: true
93+
}
8794
}
8895
},
8996

@@ -113,7 +120,7 @@ module.exports = function (grunt) {
113120

114121
grunt.initConfig(grunt.util._.extend(taskConfig, userConfig));
115122

116-
grunt.registerTask('default', [ 'connect', 'watch']);
123+
grunt.registerTask('default', [ 'connect:server', 'watch']);
117124

118125
grunt.registerTask('build', [
119126
'jshint', 'concat', 'uglify'

0 commit comments

Comments
 (0)