travis: Making the output more readable.

This commit is contained in:
Tim 'mithro' Ansell 2018-03-03 16:46:38 -08:00
parent 12bb3ebf7c
commit da3189c8b5
2 changed files with 25 additions and 5 deletions

View File

@ -1,15 +1,29 @@
#!/bin/bash #!/usr/bin/env bash
set -x
set -e set -e
source activate litex source activate litex
SOC_FILES=$(find litex/boards/targets -name \*.py | grep -v sim | grep -v "__") SOC_FILES=$(find litex/boards/targets -name \*.py | grep -v sim | grep -v "__")
COUNT=4
for SOC_FILE in $SOC_FILES; do for SOC_FILE in $SOC_FILES; do
SOC=$(echo $SOC_FILE | sed -e's/\.py$//' -e's-/-.-g') SOC=$(echo $SOC_FILE | sed -e's/\.py$//' -e's-/-.-g')
python -m $SOC --no-compile-gateware TARGET=$(echo $SOC | sed -e's/.*\.//')
done
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

View File

@ -9,6 +9,12 @@ install:
- hash -r - hash -r
- conda config --set always_yes yes --set changeps1 no - 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: script:
- conda env create -f environment.yml - conda env create -f environment.yml
- ./.travis-build-socs.sh - ./.travis-build-socs.sh