diff --git a/.travis.yml b/.travis.yml index 14de334..c4135cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,7 @@ - Xvfb :99 -screen 0 1024x768x24 -extension RANDR & script: - - npm run build - - xvfb-maybe npm run coverage + - xvfb-maybe npm test - npm run docs deploy: diff --git a/.travis.yml b/.travis.yml index 14de334..c4135cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,7 @@ - Xvfb :99 -screen 0 1024x768x24 -extension RANDR & script: - - npm run build - - xvfb-maybe npm run coverage + - xvfb-maybe npm test - npm run docs deploy: diff --git a/package.json b/package.json index df623d5..b9506f5 100644 --- a/package.json +++ b/package.json @@ -24,12 +24,13 @@ "watch": "npm run dist -- --watch", "watch:lib": "npm run lib -- --watch", "watch:lint": "watch \"eslint scripts src test || exit 0\" src", - "test": "floss --path test/index.js", - "test:debug": "npm test -- --debug", + "test": "npm run dist && npm run coverage", + "unit-test": "floss --path test/index.js", + "unit-test:debug": "npm run unit-test -- --debug", "prerenders": "npm --prefix scripts/renders i scripts/renders", "renders": "electron scripts/renders", "precoverage": "rimraf coverage", - "coverage": "npm test -- -c dist/pixi.js -s -h", + "coverage": "npm run unit-test -- -c dist/pixi.js -s -h", "lint": "eslint scripts src test --max-warnings 0", "lintfix": "npm run lint --fix", "prebuild": "npm run lint", @@ -43,7 +44,7 @@ "publish:patch": "npm version patch && npm publish", "publish:minor": "npm version minor && npm publish", "publish:major": "npm version major && npm publish", - "postversion": "npm run clean && npm run build && npm run lib && npm test", + "postversion": "npm run clean && npm run build && npm run lib && npm run unit-test", "postpublish": "git push && git push --tags && npm run release", "release": "node scripts/release" },