travis: Making the output more readable.
authorTim 'mithro' Ansell <me@mith.ro>
Sun, 4 Mar 2018 00:46:38 +0000 (16:46 -0800)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 4 Mar 2018 01:28:42 +0000 (17:28 -0800)
.travis-build-socs.sh
.travis.yml

index 44f943b6a9b2aecd55b87ed2e632a510e012e0b4..df1b71f351650c17103889159deb78e75f11a579 100755 (executable)
@@ -1,15 +1,29 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
-set -x
 set -e
 
 source activate litex
 
 SOC_FILES=$(find litex/boards/targets -name \*.py | grep -v sim | grep -v "__")
 
+COUNT=4
+
 for SOC_FILE in $SOC_FILES; do
        SOC=$(echo $SOC_FILE | sed -e's/\.py$//' -e's-/-.-g')
+       TARGET=$(echo $SOC | sed -e's/.*\.//')
+
+       travis_fold start "$SOC.1"
+       travis_time_start
+       echo "Building $TARGET ($SOC)"
+       echo "-------------------------------------------------------------------"
        python -m $SOC --no-compile-gateware
+       echo "-------------------------------------------------------------------"
+       travis_time_finish
+       travis_fold end "$SOC.1"
+       travis_fold start "$SOC.2"
+       echo "Output of building $SOC"
+       echo "-------------------------------------------------------------------"
+       find soc_*$TARGET* | sort
+       echo "-------------------------------------------------------------------"
+       travis_fold end "$SOC.2"
 done
-
-find soc_* | sort
index b05a4b56611db5eb2ed960831406e28b8d9574b3..63553c88e669f6c90eb18921e42575baed5e1fa9 100644 (file)
@@ -9,6 +9,12 @@ install:
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
 
+before_script:
+ - export -f travis_nanoseconds
+ - export -f travis_fold
+ - export -f travis_time_start
+ - export -f travis_time_finish
+
 script:
  - conda env create -f environment.yml
  - ./.travis-build-socs.sh