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 Mar 31, 2019
1 parent 4efbdf9 commit 8b73ed0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
@@ -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
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 8b73ed0

Please sign in to comment.