Skip to content

Commit

Permalink
make CI starts with (longer) PIO jobs, also move (shorter) host job l…
Browse files Browse the repository at this point in the history
…ater (#5599)

* make CI starts with (longer) PIO jobs, also move host (shorter) test later

* mention stage on every test
  • Loading branch information
d-a-v authored and earlephilhower committed Jan 7, 2019
1 parent c08ef51 commit 8f8628c
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .travis.yml
Expand Up @@ -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.
Expand Down

0 comments on commit 8f8628c

Please sign in to comment.