Skip to content

Commit f1f7db1

Browse files
committed
tests(fix): fix failing tests
1 parent a967485 commit f1f7db1

3 files changed

Lines changed: 33 additions & 31 deletions

File tree

.travis.yml

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
sudo: false
22
notifications:
3-
email: false
3+
email: false
44
language: node_js
55
node_js:
6-
- "10"
7-
- "8"
8-
- "6"
6+
- "10"
7+
- "8"
8+
- "6"
99
cache:
10-
directories:
11-
- ~/.npm
10+
directories:
11+
- ~/.npm
1212
matrix:
13-
include:
14-
- os: linux
15-
node_js: "stable"
16-
env: JOB_PART=lint
17-
- os: linux
18-
node_js: "stable"
19-
env: JOB_PART=integration
20-
- os: linux
21-
node_js: "10"
22-
env: JOB_PART=integration
23-
- os: linux
24-
node_js: "8"
25-
env: JOB_PART=integration
26-
- os: linux
27-
node_js: "6"
28-
env: JOB_PART=integration
13+
include:
14+
- os: linux
15+
node_js: "stable"
16+
env: JOB_PART=lint
17+
- os: linux
18+
node_js: "stable"
19+
env: JOB_PART=integration
20+
- os: linux
21+
node_js: "10"
22+
env: JOB_PART=integration
23+
- os: linux
24+
node_js: "8"
25+
env: JOB_PART=integration
26+
- os: linux
27+
node_js: "6"
28+
env: JOB_PART=integration
2929

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

3333
install:
34-
- travis_wait npm ci
35-
- npm install -g codecov
36-
- npm install -g eslint
34+
- travis_wait npm ci
35+
- npm install -g codecov
36+
- npm install -g eslint
37+
script:
38+
- npm run travis:lint
39+
- npm run test:ci
3740

3841
jobs:
39-
include:
40-
- stage: commit lint
41-
script: commitlint-travis
42+
include:
43+
- stage: commit lint
44+
script: commitlint-travis

commitlint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
"body-leading-blank": [1, "always"],
1313
"footer-leading-blank": [1, "always"],
1414
"header-max-length": [2, "always", 80],
15-
lang: [0, "always", "eng"],
1615
"scope-case": [2, "always", "lowerCase"],
1716
"scope-empty": [0, "never"],
1817
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit",
4141
"test:ci": "nyc jest --maxWorkers=$(nproc) --reporters=default --reporters=jest-junit",
4242
"travis:integration": "npm run build && npm run test && npm run reportCoverage",
43-
"travis:lint": "lerna bootstrap && npm run build && npm run lint && npm run tslint && npm run bundlesize",
43+
"travis:lint": "lerna bootstrap && npm run build && npm run lint && npm run tslint",
4444
"tslint": "tslint -c tslint.json \"packages/**/*.ts\"",
4545
"watch": "npm run build && tsc -w",
4646
"postinstall": "lightercollective"

0 commit comments

Comments
 (0)