Skip to content

Commit

Permalink
Build: Improve travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasthiebaud committed May 1, 2019
1 parent 5e9c37b commit 5fd487b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
language: node_js
node_js:

# Keep empty to use version from .nvmrc
node_js: null

cache:
directories: node_modules
directories:
- node_modules

install:
- npm i
- npm ci

script:
- npm run lint
- npm run test
- npm run build

after_success:
- npx semantic-release

branches:
only: master
only:
- master

notifications:
email: false
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
"main": "./dist/trustpilot-api.js",
"types": "./dist/trustpilot-api.d.ts",
"scripts": {
"tsc": "tsc -p tsconfig.build.json",
"test": "mocha --require ts-node/register ./spec/*.spec.ts",
"build": "tsc --project tsconfig.build.json",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"build": "npm run tsc && npm run test && npm run lint",
"start": "node dist/client.js"
"start": "node dist/client.js",
"test": "mocha --require ts-node/register ./spec/*.spec.ts"
},
"dependencies": {
"@types/request": "^2.48.1",
Expand Down
15 changes: 0 additions & 15 deletions tsconfig.spec.json

This file was deleted.

0 comments on commit 5fd487b

Please sign in to comment.