Skip to content

Commit

Permalink
ci: handle node_js v6
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 30, 2019
1 parent ce07285 commit d2b57f6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ npm-debug.log
.DS_Store
.esm-cache

# Bundle
target

# Typescript
*.tsbuildinfo
.tsbuildinfo
Expand Down
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
language: node_js
sudo: false

node_js:
- "6"
- "8"
- "10"
- "12"
- "13"
sudo: false

cache:
directories:
- target
- node_modules

install:
- 'if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then nvm use 8 ; fi ;'
- yarn install
- yarn build
- 'if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then nvm use "${TRAVIS_NODE_VERSION}" && node --version ; fi ;'

script:
- yarn test
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"license": "MIT",
"version": "2.1.0",
"source": "src/main/ts/index.ts",
"source": "jsonrpc.ts",
"main": "jsonrpc.js",
"module": "jsonrpc.mjs",
"unpkg": "jsonrpc.umd.js",
Expand Down Expand Up @@ -42,10 +42,10 @@
},
"scripts": {
"build:tsc": "tsc -p tsconfig.build.json",
"build:microbundle": "microbundle jsonrpc.ts --name jsonrpc --strict",
"build:microbundle": "microbundle build jsonrpc.ts --name jsonrpc --strict",
"build": "yarn build:microbundle",
"lint": "tslint -p tsconfig.json -t stylish jsonrpc.ts",
"test": "npm run lint && tman"
"test": "yarn lint && tman"
},
"files": [
"README.md",
Expand Down

0 comments on commit d2b57f6

Please sign in to comment.