From: Matias Elo <matias....@nokia.com> Add basic build only test stage to the beginning of test run. This way potential build errors are caught early on without having to wait for the longer test jobs to finish.
Signed-off-by: Matias Elo <matias....@nokia.com> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org> --- /** Email created from pull request 301 (muvarov:api-next) ** https://github.com/Linaro/odp/pull/301 ** Patch: https://github.com/Linaro/odp/pull/301.patch ** Base sha: d4b364849c4abb4c71e0c5260e1a793ebb8dc97d ** Merge commit sha: 390c09cfddb8e938a4bef428fb46ce575f22c984 **/ .travis.yml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6bd03a0c1..b5c1b6417 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ language: c sudo: required dist: trusty group: deprecated-2017Q2 +stages: + - "build only" + - test env: global: # COVERITY_SCAN_TOKEN @@ -256,7 +259,7 @@ jobs: - ./configure --prefix=$HOME/odp-install --enable-user-guides - sudo PATH="$PATH" LD_LIBRARY_PATH="$HOME/cunit-install/$CROSS_ARCH/lib:$LD_LIBRARY_PATH" make distcheck - - stage: test + - stage: "build only" env: TEST=doxygen compiler: gcc install: @@ -282,6 +285,38 @@ jobs: - echo ${TRAVIS_COMMIT_RANGE}; - ODP_PATCHES=`echo ${TRAVIS_COMMIT_RANGE} | sed 's/\.//'`; - ./scripts/ci-checkpatches.sh ${ODP_PATCHES}; + - stage: "build only" + env: CONF="" + compiler: gcc + install: true + script: + - ./bootstrap + - ./configure --enable-helper-linux + - make + - stage: "build only" + env: CONF="" + compiler: clang-3.8 + install: true + script: + - ./bootstrap + - ./configure --enable-helper-linux + - make + - stage: "build only" + env: CROSS_ARCH="i386" + compiler: gcc + install: true + script: + - ./bootstrap + - ./configure --enable-helper-linux $CROSS + - make + - stage: "build only" + env: CROSS_ARCH="arm64" + compiler: gcc + install: true + script: + - ./bootstrap + - ./configure --enable-helper-linux $CROSS + - make after_failure: - cat config.log