Minor fixes mostly related to testing and circle ci
This commit is contained in:
Родитель
b29a7219f2
Коммит
c867148e4c
|
@ -38,15 +38,22 @@ jobs:
|
|||
|
||||
- run:
|
||||
name: Lint
|
||||
command: npm run eslint
|
||||
command: npm run lint
|
||||
|
||||
- run:
|
||||
name: Build .XPI
|
||||
command: npm run build
|
||||
|
||||
- run:
|
||||
name: Unit tests
|
||||
command: npm run test:karma
|
||||
|
||||
- run:
|
||||
name: Functional tests
|
||||
command: npm run test
|
||||
command: npm run test:func
|
||||
|
||||
- store_artifacts:
|
||||
path: "dist"
|
||||
|
||||
- store_test_results:
|
||||
path: "build/coverage"
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!*.gitignore
|
|
@ -8,7 +8,7 @@ src/privileged/prefs/api.js
|
|||
src/privileged/prefs/schema.json
|
||||
src/privileged/study/api.js
|
||||
src/privileged/study/schema.json
|
||||
# for circleCI; don't lint/format code in the Firefox directory
|
||||
firefox
|
||||
# for circleCI; don't lint/format code the directory where get-firefox downloads the Firefox binaries
|
||||
/firefox
|
||||
# don't lint/format package.json since npm install formats it differently by default
|
||||
package.json
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
node_modules
|
||||
.env
|
||||
|
|
|
@ -32,10 +32,10 @@ module.exports = function(config) {
|
|||
files: [
|
||||
"node_modules/sinon/pkg/sinon.js",
|
||||
"node_modules/sinon-chrome/bundle/sinon-chrome.min.js",
|
||||
"add-on/webextension/main.js",
|
||||
"src/background.js",
|
||||
"test/unit/*.test.js",
|
||||
],
|
||||
preprocessors: { "add-on/*.js": ["coverage"] },
|
||||
preprocessors: { "src/*.js": ["coverage"] },
|
||||
plugins: [
|
||||
"karma-coveralls",
|
||||
"karma-coverage",
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
"web-ext": "^2.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9.0"
|
||||
"node": ">=8.11.1"
|
||||
},
|
||||
"homepage": "http://github.com/mozilla/shield-studies-addon-template",
|
||||
"keywords": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче