Skip to content

Commit 022bb6b

Browse files
build(travis): cleanup script and enable cache
1 parent 940ee9c commit 022bb6b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
node_js:
33
- lts/*
44

5-
#cache: npm
5+
cache: npm
66
# directories:
77
# - $HOME/.npm
88
# - node_modules
@@ -27,8 +27,8 @@ notifications:
2727
before_script: npx greenkeeper-lockfile-update
2828

2929
script:
30-
- npm run lint
31-
- npm run test:prod
30+
- npm run lint:ci
31+
- npm run test:ci
3232
- npm run build
3333
- npm run build:docs
3434

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
"commit": "git-cz",
3434
"commitmsg": "validate-commit-msg",
3535
"deploy-docs": "ts-node tools/gh-pages-publish",
36-
"lint": "npm run prettier && tslint --project tsconfig.json -t codeFrame --fix",
36+
"lint": "tslint --project tsconfig.json -t codeFrame --fix",
37+
"lint:ci": "tslint --project tsconfig.json -t codeFrame",
3738
"report-coverage": "cat ./coverage/lcov.info | coveralls",
3839
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
3940
"test": "jest",
40-
"test:prod": "npm run test -- --coverage --no-cache",
41+
"test:ci": "npm run test -- --coverage --no-cache",
4142
"test:watch": "jest --watch",
4243
"prettier": "prettier --write --config ./.prettierrc.yml '{src,test}/**/*.ts'"
4344
},

0 commit comments

Comments
 (0)