aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Bazanski <sergiusz@q3k.org>2018-12-06 12:35:14 +0100
committerGitHub <noreply@github.com>2018-12-06 12:35:14 +0100
commita9e1fab9fcdb0493343a8ba23b471255544f10ea (patch)
treeab847781349e19872ac2aa527402e8028fb6a1b9
parent144363693db2649d6c9bcd3a73e6e4f381c67b22 (diff)
parent70c30c9c9659db84c37fb8a0d2f3cab8630360e5 (diff)
downloadnextpnr-a9e1fab9fcdb0493343a8ba23b471255544f10ea.tar.gz
nextpnr-a9e1fab9fcdb0493343a8ba23b471255544f10ea.tar.bz2
nextpnr-a9e1fab9fcdb0493343a8ba23b471255544f10ea.zip
Merge pull request #168 from YosysHQ/ci/cirrus
ci: implement using CirrusCI
-rw-r--r--.cirrus.yml11
-rw-r--r--.cirrus/Dockerfile.ubuntu16.0433
2 files changed, 44 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644
index 00000000..10865c7b
--- /dev/null
+++ b/.cirrus.yml
@@ -0,0 +1,11 @@
+task:
+ name: build-test-ubuntu1604
+ container:
+ cpu: 4
+ memory: 16
+ dockerfile: .cirrus/Dockerfile.ubuntu16.04
+
+ build_script: mkdir build && cd build && cmake .. -DARCH=all -DTRELLIS_ROOT=/usr/local/src/prjtrellis -DBUILD_TESTS=on && make -j $(nproc)
+ test_generic_script: cd build && ./nextpnr-generic-test
+ test_ice40_script: cd build && ./nextpnr-ice40-test
+ test_ecp5_script: cd build && ./nextpnr-ecp5-test
diff --git a/.cirrus/Dockerfile.ubuntu16.04 b/.cirrus/Dockerfile.ubuntu16.04
new file mode 100644
index 00000000..7335292f
--- /dev/null
+++ b/.cirrus/Dockerfile.ubuntu16.04
@@ -0,0 +1,33 @@
+FROM ubuntu:xenial-20181113
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN set -e -x ;\
+ apt-get -y update ;\
+ apt-get -y upgrade ;\
+ apt-get -y install \
+ build-essential cmake clang python3-dev libboost-all-dev qt5-default git
+
+RUN set -e -x ;\
+ apt-get -y install \
+ libftdi-dev pkg-config
+
+RUN set -e -x ;\
+ mkdir -p /usr/local/src ;\
+ cd /usr/local/src ;\
+ git clone --recursive https://github.com/cliffordwolf/icestorm.git ;\
+ cd icestorm ;\
+ git reset --hard 9671b760f84ca4006f0ef101a3e3b201df4eabb5 ;\
+ make -j $(nproc) ;\
+ make install
+
+RUN set -e -x ;\
+ mkdir -p /usr/local/src ;\
+ cd /usr/local/src ;\
+ git clone --recursive https://github.com/SymbiFlow/prjtrellis.git ;\
+ cd prjtrellis ;\
+ git reset --hard de035a6e5e5818804a66b9408f0ad381b10957db ;\
+ cd libtrellis ;\
+ cmake -DCMAKE_INSTALL_PREFIX=/usr . ;\
+ make -j $(nproc) ;\
+ make install