Skip to content

Commit

Permalink
tests(fix): fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 18, 2019
1 parent a967485 commit f1f7db1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
61 changes: 32 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
sudo: false
notifications:
email: false
email: false
language: node_js
node_js:
- "10"
- "8"
- "6"
- "10"
- "8"
- "6"
cache:
directories:
- ~/.npm
directories:
- ~/.npm
matrix:
include:
- os: linux
node_js: "stable"
env: JOB_PART=lint
- os: linux
node_js: "stable"
env: JOB_PART=integration
- os: linux
node_js: "10"
env: JOB_PART=integration
- os: linux
node_js: "8"
env: JOB_PART=integration
- os: linux
node_js: "6"
env: JOB_PART=integration
include:
- os: linux
node_js: "stable"
env: JOB_PART=lint
- os: linux
node_js: "stable"
env: JOB_PART=integration
- os: linux
node_js: "10"
env: JOB_PART=integration
- os: linux
node_js: "8"
env: JOB_PART=integration
- os: linux
node_js: "6"
env: JOB_PART=integration

before_install:
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
- "[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest" # skipped when using node 9

install:
- travis_wait npm ci
- npm install -g codecov
- npm install -g eslint
- travis_wait npm ci
- npm install -g codecov
- npm install -g eslint
script:
- npm run travis:lint
- npm run test:ci

jobs:
include:
- stage: commit lint
script: commitlint-travis
include:
- stage: commit lint
script: commitlint-travis
1 change: 0 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = {
"body-leading-blank": [1, "always"],
"footer-leading-blank": [1, "always"],
"header-max-length": [2, "always", 80],
lang: [0, "always", "eng"],
"scope-case": [2, "always", "lowerCase"],
"scope-empty": [0, "never"],
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit",
"test:ci": "nyc jest --maxWorkers=$(nproc) --reporters=default --reporters=jest-junit",
"travis:integration": "npm run build && npm run test && npm run reportCoverage",
"travis:lint": "lerna bootstrap && npm run build && npm run lint && npm run tslint && npm run bundlesize",
"travis:lint": "lerna bootstrap && npm run build && npm run lint && npm run tslint",
"tslint": "tslint -c tslint.json \"packages/**/*.ts\"",
"watch": "npm run build && tsc -w",
"postinstall": "lightercollective"
Expand Down

0 comments on commit f1f7db1

Please sign in to comment.