Skip to content

Commit

Permalink
ci: Add bundlesize check to TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek authored Oct 12, 2017
1 parent 4824023 commit 742bf2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ addons:
chrome: stable
sauce_connect: true
script:
- npm run test
- npm run test:ci
- npm run test && npm run test:ci
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
"lint": "eslint .",
"precommit": "lint-staged",
"publish": "npm run test && grunt publish",
"test": "npm run lint && grunt build.test && npm run test:unit && npm run test:integration && npm run test:typescript",
"test": "npm run lint && npm run test:size && grunt build.test && npm run test:unit && npm run test:integration && npm run test:typescript",
"test:unit": "mocha-chrome test/index.html",
"test:integration": "mocha-chrome test/integration/index.html --chrome-flags '[\"--disable-web-security\"]' --ignore-resource-errors --ignore-exceptions",
"test:typescript": "tsc --noEmit --noImplicitAny typescript/raven-tests.ts",
"test:ci": "npm run lint && grunt test:ci"
"test:ci": "npm run lint && grunt test:ci",
"test:size": "grunt dist && bundlesize"
},
"devDependencies": {
"bluebird": "^3.4.1",
"browserify-versionify": "^1.0.6",
"bundle-collapser": "^1.2.1",
"bundlesize": "^0.15.2",
"chai": "^4.1.1",
"derequire": "2.0.3",
"es6-promise": "^4.0.5",
Expand Down Expand Up @@ -67,5 +69,11 @@
"git add"
]
},
"typings": "typescript/raven.d.ts"
"typings": "typescript/raven.d.ts",
"bundlesize": [
{
"path": "./dist/raven.min.js",
"maxSize": "10 kB"
}
]
}

0 comments on commit 742bf2f

Please sign in to comment.