From 5dd8971c938f3591f470c1cd531fe70db8b0eff4 Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Sun, 31 Mar 2019 15:15:57 +0200 Subject: [PATCH] ci(travis-ci): build stages --- .travis.yml | 17 +++++++++++++++-- package.json | 1 - 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 290a50e6..0e45f39d 100644 --- a/.travis.yml +++ b/.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= diff --git a/package.json b/package.json index 112ca6f4..23a3094e 100644 --- a/package.json +++ b/package.json @@ -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",