         runInBackground: false
       }
     }
-
-    # Run tests on Sauce Labs
-    'wct-test': {
-      remote: {
-        options: {
-          suites: ['test/']
-          remote: true
-          sauce: {
-            username: 'mkautzmann'
-            accessKey: '40457848-7820-4b70-872b-70e91a2806ab'
-          }
+    ###
+
+    # Runs browser tests on Sauce Labs (only Circle CI must run it)
+    'saucelabs-mocha': {
+      all: {
+        options: {
+          username: process.env.SAUCE_USERNAME
+          key: process.env.SAUCE_ACCESSKEY
+          urls: ['localhost:8080/test/index.html']
+          testname: 'scroll-proxy'
+          build: process.env.CIRCLE_BUILD_NUM
+          pollInterval: 5000
+          'max-duration': 500
+          maxRetries: 1
+          browsers: grunt.file.readJSON('browserSupport.json').browsers
         }
       }
     }

      }
    }

    # Run tests using Mocha with Phantom.JS
    mocha: {
      test: {
        options: {
          urls: [
            'http://localhost:3000/test/index.html'
          ]
          reporter: 'Spec'
          run: true
        }
      }
    }

    # Generate documentation with Codo
    codo: {
      options: {
        name: '<%= pkg.name %>'
        output: './docs'
        title: '<%= pkg.name %>\'s Documentation'
      }
      app: {
        src: ['src/*.coffee']
      }
    }

    # Clean all builds, get back to default state
    clean: [
      'dev'
      'docs'
      'test/testBundle.js'
      '<%= pkg.name %>.js'
      '<%= pkg.name %>.min.js'
    ]

    # Watch tasks to run while developing

    - grunt dev = Compiles everything with source maps, runs tests and generate
      documentation and some working code on the dev folder. Nice for debugging.

    - grunt build = Does everything `grunt dev` does but for distribution
      and also minifies code leaving both the standalone bundle and the module
      ready to production in the dist folder.

    Also, there are some individual grunt tasks, for more info run `grunt help`
###

module.exports = (grunt) ->
