Skip to content

Commit 5dd8971

Browse files
committed
ci(travis-ci): build stages
1 parent caa2017 commit 5dd8971

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.travis.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1+
sudo: false
12
language: node_js
2-
cache: yarn
33
node_js:
44
- 'stable'
55
- '10'
66
- '8'
77
- '6'
8-
after_success: yarn coveralls
8+
before_install:
9+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
10+
- export PATH=$HOME/.yarn/bin:$PATH
11+
cache: yarn
12+
stages:
13+
- lint
14+
- test
15+
- coveralls
16+
jobs:
17+
include:
18+
- stage: lint
19+
script: yarn lint
20+
- stage: coveralls
21+
script: yarn coveralls
922
env:
1023
global:
1124
# COVERALLS_REPO_TOKEN=

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
1313
"lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
1414
"lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
15-
"prebuild": "yarn lint",
1615
"build": "tsc",
1716
"pretest": "yarn build",
1817
"test": "jest --runInBand",

0 commit comments

Comments
 (0)