From b9b12d5f7da6b4e729db307eb568cbe526d91238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 30 Oct 2018 20:07:32 +0000 Subject: [PATCH] chore(ci): parallelize Travis CI jobs by using same name for stages Move all lint jobs to a stage named 'Lint' and test jobs to a stage named 'Test', this will allow Travis to run all jobs in the same stage in parallel, speeding up CI tasks --- .travis.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67980cb8b..391509a54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,38 +14,49 @@ defaults_js: &DEFAULTS_JS jobs: include: - - stage: Lint git commits - <<: *DEFAULTS_JS - script: make lint-git-ci - - - stage: Test Go code + - stage: Test <<: *DEFAULTS_GO + env: + - DESC="Test Go code" before_script: - make mock-assets script: make test-go after_success: - bash <(curl -s https://codecov.io/bash) -F backend - - stage: Test JavaScript code + - stage: Test <<: *DEFAULTS_JS env: + - DESC="Test JavaScript code" - NODE_ENV=test script: make test-js after_success: - bash <(curl -s https://codecov.io/bash) -F ui -s ui - - stage: Lint Go code + - stage: Lint + <<: *DEFAULTS_JS + env: + - DESC="Lint git commit" + script: make lint-git-ci + + - stage: Lint <<: *DEFAULTS_GO + env: + - DESC="Lint Go code" before_script: - make mock-assets script: make lint-go - - stage: Lint JavaScript code + - stage: Lint <<: *DEFAULTS_JS + env: + - DESC="Lint JavaScript code" script: make lint-js - - stage: Lint docs + - stage: Lint <<: *DEFAULTS_JS + env: + - DESC="Lint documentation" script: make lint-docs - stage: Build Docker image