mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(travis): merge cloudtest into one task
This commit is contained in:
10
Gruntfile.js
10
Gruntfile.js
@@ -228,6 +228,14 @@ module.exports = function(grunt) {
|
||||
'concat:bundlemin'
|
||||
]);
|
||||
|
||||
grunt.registerTask('cloudtest', [
|
||||
'sauce-connect',
|
||||
'karma:sauce',
|
||||
'connect',
|
||||
'exec:e2e-sauce',
|
||||
'sauce-disconnect'
|
||||
]);
|
||||
|
||||
grunt.registerMultiTask('karma', 'Run karma', function() {
|
||||
var done = this.async();
|
||||
var options = this.options();
|
||||
@@ -269,7 +277,7 @@ module.exports = function(grunt) {
|
||||
username: process.env.SAUCE_USER,
|
||||
accessKey: process.env.SAUCE_KEY,
|
||||
verbose: true,
|
||||
tunnelIdentifier: process.env.TRAVIS_BUILD_NUMBER,
|
||||
tunnelIdentifier: process.env.TRAVIS_BUILD_NUMBER
|
||||
}, function(err, instance) {
|
||||
if (err) {
|
||||
grunt.fail.fatal('Failed to launch sauce connect!', err);
|
||||
|
||||
@@ -85,7 +85,7 @@ function run {
|
||||
echo ""
|
||||
|
||||
# Do sauce unit tests and e2e tests with all browsers (takes longer)
|
||||
grunt sauce-connect karma:sauce --reporters=dots exec:e2e-sauce sauce-disconnect
|
||||
grunt cloudtest
|
||||
|
||||
echo ""
|
||||
echo "--- Build and tests complete! ---"
|
||||
|
||||
Reference in New Issue
Block a user