From da3189c8b5c7bdbf4e47dbf2e511ba121f450e10 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sat, 3 Mar 2018 16:46:38 -0800 Subject: [PATCH] travis: Making the output more readable. --- .travis-build-socs.sh | 24 +++++++++++++++++++----- .travis.yml | 6 ++++++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.travis-build-socs.sh b/.travis-build-socs.sh index 44f943b6a..df1b71f35 100755 --- a/.travis-build-socs.sh +++ b/.travis-build-socs.sh @@ -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') - python -m $SOC --no-compile-gateware -done + TARGET=$(echo $SOC | sed -e's/.*\.//') -find soc_* | sort + 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 diff --git a/.travis.yml b/.travis.yml index b05a4b566..63553c88e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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