Skip to content

Commit

Permalink
ci(travis-ci): build stages
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Apr 4, 2019
1 parent caa2017 commit 5dd8971
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
sudo: false
language: node_js
cache: yarn
node_js:
- 'stable'
- '10'
- '8'
- '6'
after_success: yarn coveralls
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH=$HOME/.yarn/bin:$PATH
cache: yarn
stages:
- lint
- test
- coveralls
jobs:
include:
- stage: lint
script: yarn lint
- stage: coveralls
script: yarn coveralls
env:
global:
# COVERALLS_REPO_TOKEN=
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
"lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
"lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
"prebuild": "yarn lint",
"build": "tsc",
"pretest": "yarn build",
"test": "jest --runInBand",
Expand Down

0 comments on commit 5dd8971

Please sign in to comment.