From 2bf1364262edadbc2d40108fca76da709300fe58 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 29 Mar 2019 12:42:11 -0400 Subject: [PATCH 1/2] build: move doc tests to separate Travis job Move the doc tests to a separate Travis job to reduce the overall time for the `Test Suite` job. --- .travis.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2569b44ec39e83..b04d1f63139155 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,21 @@ matrix: - name: "Linter" language: node_js node_js: "node" - env: - - NODE=$(which node) script: - - make lint + - NODE=$(which node) make lint + - name: "Documentation" + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + install: + - export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2 + - ./configure + - make -j2 V= + script: + - make test-doc - name: "Test Suite" addons: apt: @@ -31,4 +42,4 @@ matrix: - ./configure - make -j2 V= script: - - PARALLEL_ARGS='--flaky-tests=skip' make -j1 test + - PARALLEL_ARGS='--flaky-tests=skip' make -j1 test-only From f7f0472470245a11e37c80e22fd14ba0d720d112 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 29 Mar 2019 20:10:06 -0400 Subject: [PATCH 2/2] fixup! build: move doc tests to separate Travis job --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index b04d1f63139155..ed7dd64ff62cb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,13 @@ language: cpp cache: ccache os: linux dist: xenial +stages: + - check + - test matrix: include: - name: "First commit message adheres to guidelines at https://goo.gl/p2fr5Q" + stage: check if: type = pull_request language: node_js node_js: "node" @@ -13,11 +17,13 @@ matrix: bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST}; fi - name: "Linter" + stage: check language: node_js node_js: "node" script: - NODE=$(which node) make lint - name: "Documentation" + stage: check addons: apt: sources: @@ -31,6 +37,7 @@ matrix: script: - make test-doc - name: "Test Suite" + stage: test addons: apt: sources: