travis: Build all the SoCs (without gateware).
authorTim 'mithro' Ansell <me@mith.ro>
Sun, 4 Mar 2018 00:41:53 +0000 (16:41 -0800)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 4 Mar 2018 00:49:49 +0000 (16:49 -0800)
 - TODO: Build the simulator SoC.

.travis-build-socs.sh [new file with mode: 0755]
.travis.yml

diff --git a/.travis-build-socs.sh b/.travis-build-socs.sh
new file mode 100755 (executable)
index 0000000..44f943b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -x
+set -e
+
+source activate litex
+
+SOC_FILES=$(find litex/boards/targets -name \*.py | grep -v sim | grep -v "__")
+
+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
+
+find soc_* | sort
index 822ff36b11d37ade91eb475d3ecc10d02e7a7f41..b05a4b56611db5eb2ed960831406e28b8d9574b3 100644 (file)
@@ -11,4 +11,4 @@ install:
 
 script:
  - conda env create -f environment.yml
- - source activate litex
+ - ./.travis-build-socs.sh