You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2018/10/11 23:24:27 UTC
[mynewt-core] branch master updated: Allow parallel tests
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 5a36c73 Allow parallel tests
5a36c73 is described below
commit 5a36c7307372f4fddc54f24d2172b31ba053b968
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Tue Sep 25 10:11:50 2018 -0300
Allow parallel tests
The build matrix was updated to support running tests on multiple machines.
Other small changes to formatting and style where applied, plus clone git
repos without history.
---
.travis.yml | 110 +++++++++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 90 insertions(+), 20 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 1bf3257..a95d997 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,53 +28,123 @@ _addons: &addon_conf
go:
- "1.10"
+git:
+ depth: false
+
matrix:
include:
+ # newt build <targets>
+ - os: linux
+ env:
+ - TEST=BUILD_TARGETS
+ - VM_AMOUNT=4
+ - TARGET_SET=1
+ - os: linux
+ env:
+ - TEST=BUILD_TARGETS
+ - VM_AMOUNT=4
+ - TARGET_SET=2
- os: linux
env:
- TEST=BUILD_TARGETS
+ - VM_AMOUNT=4
+ - TARGET_SET=3
+ - os: linux
+ env:
+ - TEST=BUILD_TARGETS
+ - VM_AMOUNT=4
+ - TARGET_SET=4
+
+ # newt build <blinky-for-BSP>
- os: linux
env:
- TEST=BUILD_BLINKY
+ - VM_AMOUNT=4
+ - TARGET_SET=1
+ - os: linux
+ env:
+ - TEST=BUILD_BLINKY
+ - VM_AMOUNT=4
+ - TARGET_SET=2
+ - os: linux
+ env:
+ - TEST=BUILD_BLINKY
+ - VM_AMOUNT=4
+ - TARGET_SET=3
+ - os: linux
+ env:
+ - TEST=BUILD_BLINKY
+ - VM_AMOUNT=4
+ - TARGET_SET=4
+
+ # newt test all (Linux)
+ - os: linux
+ addons: *addon_conf
+ env:
+ - TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=1
+ - os: linux
+ addons: *addon_conf
+ env:
+ - TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=2
- os: linux
addons: *addon_conf
env:
- TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=3
+
+ # newt test all (osx)
- os: osx
osx_image: xcode9.2
env:
- - TEST=BUILD_TARGETS
+ - TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=1
- os: osx
osx_image: xcode9.2
env:
- - TEST=BUILD_BLINKY
+ - TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=2
- os: osx
osx_image: xcode9.2
env:
- TEST=TEST_ALL
+ - VM_AMOUNT=3
+ - TARGET_SET=3
-install:
-- printenv
-- export GOPATH=$HOME/gopath
-- go version
+before_install:
+ - printenv
+ - export GOPATH=$HOME/gopath
+ - go version
-- git clone https://github.com/runtimeco/mynewt-travis-ci $HOME/ci
-- chmod +x $HOME/ci/*.sh
-- $HOME/ci/${TRAVIS_OS_NAME}_travis_install.sh
+install:
+ - git clone https://github.com/runtimeco/mynewt-travis-ci $HOME/ci
+ - chmod +x $HOME/ci/*.sh
+ - $HOME/ci/${TRAVIS_OS_NAME}_travis_install.sh
-- newt version
-- gcc --version
-- if [ "${TEST}" != "TEST_ALL" ]; then arm-none-eabi-gcc --version; fi
+before_script:
+ - newt version
+ - gcc --version
+ - if [ "${TEST}" != "TEST_ALL" ]; then arm-none-eabi-gcc --version; fi
+ - cp -R $HOME/ci/mynewt-core-project.yml project.yml
+ - cp -R $HOME/ci/mynewt-core-targets targets
+ - newt install
+ # pass in the number of target sets
+ - $HOME/ci/prepare_test.sh $VM_AMOUNT
script:
-- cp -R $HOME/ci/mynewt-core-project.yml project.yml
-- cp -R $HOME/ci/mynewt-core-targets targets
-- newt install
-
-- export IGNORED_BSPS="ci40 embarc_emsk hifive1 native-armv7 native-mips
- pic32mx470_6lp_clicker pic32mz2048_wi-fire sensorhub
- native"
-- $HOME/ci/run_test.sh
+ # the following list of targets are known to fail building blinky, or
+ # might have extra dependencies hard to provide, non-common toolchains, etc
+ # NOTE: "native" is here to avoid having to install gcc-multilib
+ - export IGNORED_BSPS="ci40 embarc_emsk hifive1 native-armv7 native-mips
+ pic32mx470_6lp_clicker pic32mz2048_wi-fire sensorhub
+ native"
+ - $HOME/ci/run_test.sh
cache:
directories: