From 919af5bbe65f7727f24fe1a0afb4f44f6ffaec5a Mon Sep 17 00:00:00 2001 From: david gauchard Date: Mon, 7 Jan 2019 22:11:38 +0100 Subject: [PATCH 1/2] make CI starts with (longer) PIO jobs, also move host (shorter) test later --- .travis.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e0e5282e5..1816befe37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,14 +20,17 @@ stages: jobs: include: # Build stage. To save time, run all kinds of builds and tests in parallel. - - name: "Host tests" - stage: build - script: $TRAVIS_BUILD_DIR/tests/ci/host_test.sh - install: sudo apt-get install valgrind lcov - # TODO: since we can now call different script for each job, # split the do-it-all common.sh into separate scripts responsible # for different types of jobs below: + - name: "Platformio (1)" + script: $TRAVIS_BUILD_DIR/tests/common.sh + env: + - BUILD_TYPE=platformio_even + - name: "Platformio (2)" + script: $TRAVIS_BUILD_DIR/tests/common.sh + env: + - BUILD_TYPE=platformio_odd - name: "Build (1)" script: $TRAVIS_BUILD_DIR/tests/common.sh env: @@ -52,14 +55,11 @@ jobs: script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=build6_odd - - name: "Platformio (1)" - script: $TRAVIS_BUILD_DIR/tests/common.sh - env: - - BUILD_TYPE=platformio_even - - name: "Platformio (2)" - script: $TRAVIS_BUILD_DIR/tests/common.sh - env: - - BUILD_TYPE=platformio_odd + + - name: "Host tests" + stage: build + script: $TRAVIS_BUILD_DIR/tests/ci/host_test.sh + install: sudo apt-get install valgrind lcov - name: "Docs" script: $TRAVIS_BUILD_DIR/tests/ci/build_docs.sh From 440f74729511764f164162abed03b8064b37a4fc Mon Sep 17 00:00:00 2001 From: david gauchard Date: Mon, 7 Jan 2019 22:16:24 +0100 Subject: [PATCH 2/2] mention stage on every test --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1816befe37..9852d881a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,34 +24,42 @@ jobs: # split the do-it-all common.sh into separate scripts responsible # for different types of jobs below: - name: "Platformio (1)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=platformio_even - name: "Platformio (2)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=platformio_odd - name: "Build (1)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=build_even - name: "Build (2)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=build_odd - name: "Debug (1)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=debug_even - name: "Debug (2)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=debug_odd - name: "Build IPv6 (1)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=build6_even - name: "Build IPv6 (2)" + stage: build script: $TRAVIS_BUILD_DIR/tests/common.sh env: - BUILD_TYPE=build6_odd @@ -62,16 +70,19 @@ jobs: install: sudo apt-get install valgrind lcov - name: "Docs" + stage: build script: $TRAVIS_BUILD_DIR/tests/ci/build_docs.sh install: - sudo apt-get install python3-pip - pip3 install --user -r doc/requirements.txt; - name: "Style check" + stage: build script: $TRAVIS_BUILD_DIR/tests/ci/style_check.sh install: tests/ci/install_astyle.sh - name: "Boards" + stage: build script: $TRAVIS_BUILD_DIR/tests/ci/build_boards.sh # Deploy stage.