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>
---
/** Email created from pull request 292 (matiaselo:dev/multi_stage)
 ** https://github.com/Linaro/odp/pull/292
 ** Patch: https://github.com/Linaro/odp/pull/292.patch
 ** Base sha: 2cfe11680ecc2186339183e94f291ce586740f8b
 ** Merge commit sha: 10dc84270c3aa24fe0a49ecdfb81874c4b1c0217
 **/
 .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

Reply via email to