From ae05006d217a7c1ef0949975ed31d9111002c58f Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Sun, 25 Feb 2018 00:32:41 +0100 Subject: [PATCH] Try build stages again --- .travis.yml | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 021f5116..576525fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,26 @@ language: node_js -node_js: -- lts/* -- node -before_script: -- npm run lint -- npm run clean && node bin/asc -v && npm test -script: -- npm run build && node bin/asc -v && npm test +jobs: + include: + + - stage: lint + node_js: node + script: npm run lint + env: DESC="Checks the sources with TSLint" + + - stage: test + node_js: lts/* + script: npm run clean && node bin/asc -v && npm test + env: DESC="Tests the sources on latest node.js LTS" + - stage: test + node_js: node + script: npm run clean && node bin/asc -v && npm test + env: DESC="Tests the sources on latest stable node.js" + + - stage: build + node_js: lts/* + script: npm run build && node bin/asc -v && npm test + env: DESC="Builds and tests the bundle on latest node.js LTS" + - stage: build + node_js: node + script: npm run build && node bin/asc -v && npm test + env: DESC="Builds and tests the bundle on latest stable node.js"