From 196e7dfc58c253ab759a05b2e928dee3359fbe6f Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 21 Aug 2020 21:46:13 +0200 Subject: [PATCH] Update Travis CI config for NestJS Signed-off-by: David Mehren --- .travis.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 758b785d7..341102f71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,18 @@ language: node_js dist: xenial cache: yarn +stages: + - Static Tests + - test + +node_js: + - 10 + - 12 +env: + - TEST_SUITE=test + - TEST_SUITE=test:e2e +script: "yarn run $TEST_SUITE" + jobs: include: - stage: Static Tests @@ -9,27 +21,8 @@ jobs: node_js: - 10 script: - - yarn run eslint + - yarn run lint - name: ShellCheck script: - shellcheck bin/heroku bin/setup language: generic - - name: json-lint - addons: - apt: - packages: - - jq - script: - - yarn run jsonlint - language: generic - - stage: Dynamic Tests - name: Node.js 10 - node_js: - - 10 - script: - - yarn run mocha-suite - - name: Node.js 12 - node_js: - - 12 - script: - - yarn run mocha-suite