5 # Some colors, use it like following;
6 # echo -e "Hello ${YELLOW}yellow${NC}"
11 NC
='\033[0m' # No Color
13 SPACER
="echo -e ${GRAY} - ${NC}"
15 travis_fold start
"environment.create"
17 echo -e "Setting up basic ${YELLOW}conda environment${NC}"
18 echo "-------------------------------------------------------------------"
19 conda env create
-f environment.yml
21 echo "-------------------------------------------------------------------"
23 travis_fold end
"environment.create"
27 SOC_FILES
=$
(find litex
/boards
/targets
-name \
*.py |
grep -v sim |
grep -v "__")
31 for SOC_FILE
in $SOC_FILES; do
32 SOC
=$
(echo $SOC_FILE |
sed -e's/\.py$//' -e's-/-.-g')
33 TARGET
=$
(echo $SOC |
sed -e's/.*\.//')
35 travis_fold start
"$SOC.1"
37 echo -e "Building ${GREEN}${TARGET}${NC} (${PURPLE}${SOC}${NC})"
38 echo "-------------------------------------------------------------------"
39 python
-m $SOC --no-compile-gateware
40 echo "-------------------------------------------------------------------"
42 travis_fold end
"$SOC.1"
43 travis_fold start
"$SOC.2"
44 echo -e "Output of building ${GREEN}${TARGET}${NC} (${PURPLE}${SOC}${NC})"
45 echo "-------------------------------------------------------------------"
46 find soc_
*$TARGET* |
sort
47 echo "-------------------------------------------------------------------"
48 travis_fold end
"$SOC.2"