From 8f8628c68198a3ca1bbc802871d33a4bb8a0fb49 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Mon, 7 Jan 2019 23:06:17 +0100 Subject: [PATCH] make CI starts with (longer) PIO jobs, also move (shorter) host job later (#5599) * make CI starts with (longer) PIO jobs, also move host (shorter) test later * mention stage on every test --- .travis.yml | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e0e5282e5..9852d881a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,58 +20,69 @@ 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)" + 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 - - 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" + 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.