Closed Bug 1193856 Opened 5 years ago Closed 5 years ago

Set up Continuous Integration for remotely hosted new tab page

Categories

(Firefox :: New Tab Page, defect)

40 Branch
defect
Not set
Points:
5

Tracking

()

RESOLVED FIXED
Iteration:
42.3 - Aug 10

People

(Reporter: oyiptong, Assigned: oyiptong)

References

(Blocks 2 open bugs)

Details

Set up an automated build that will:

1) Build the page, including localization
2) Run tests
3) Run a linter for each generated page
4) Possibly run performance tests and/or code coverage tests
Blocks: 1193858
No longer blocks: 1193858
Assignee: nobody → oyiptong
CI on Travis and Circle have been added https://github.com/mozilla/remote-newtab/tree/neatness

The CI scripts download the latest Nightly, using mozilla-download from npm.

Tests are run using karma, mocha and chai
Deferring localization automation to bug 1186121
My .jscsrc: 

{
    "preset": "google",
    "fileExtensions": [".js", ".jsm"],
    "esnext": true,
    "validateQuoteMarks": true
}
My .jshintrc:

{
  "maxerr": 50,
  "bitwise": true,
  "camelcase": false,
  "curly": true,
  "eqeqeq": true,
  "forin": true,
  "freeze": true,
  "immed": false,
  "indent": 2,
  "latedef": false,
  "newcap": true,
  "noarg": true,
  "noempty": true,
  "nonbsp": true,
  "nonew": false,
  "plusplus": false,
  "quotmark": "single",
  "unused": "strict",
  "strict": true,
  "maxparams": false,
  "maxdepth": 3,
  "maxstatements": 3,
  "maxcomplexity": 3,
  "maxlen": false,
  "asi": false,
  "boss": false,
  "debug": false,
  "eqnull": false,
  "es5": false,
  "esnext": true,
  "moz": true,
  "evil": false,
  "expr": false,
  "funcscope": false,
  "globalstrict": true,
  "iterator": false,
  "lastsemic": false,
  "laxbreak": false,
  "laxcomma": false,
  "loopfunc": false,
  "multistr": false,
  "noyield": true,
  "notypeof": false,
  "proto": false,
  "scripturl": false,
  "shadow": false,
  "sub": false,
  "supernew": false,
  "validthis": false,
  "browser": true,
  "browserify": false,
  "couch": false,
  "devel": true,
  "dojo": false,
  "jasmine": false,
  "jquery": false,
  "mocha": true,
  "mootools": false,
  "node": false,
  "nonstandard": false,
  "phantom": false,
  "prototypejs": false,
  "qunit": false,
  "rhino": false,
  "shelljs": false,
  "typed": false,
  "worker": false,
  "wsh": false,
  "yui": false,
  "globals": {
    "requestLongerTimeout": true,
    "Components": true,
    "BrowserTestUtils": true,
    "add_task": true,
    "Components": true,
    "SpecialPowers": true,
    "todo_is": true,
    "gBrowser": true,
    "Assert": true,
  }
}
Blocks: Sprint_CS_S1
Iteration: 43.3 - Sep 21 → 42.3 - Aug 10
Points: --- → 5
Waiting on coveralls.io for code coverage test.

Will create a separate bug to track
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Blocks: 1196783
Blocks: 1205313
No longer blocks: 1205313
You need to log in before you can comment on or make changes to this bug.