add .gitlab-ci.yml
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 26 Mar 2020 05:30:07 +0000 (22:30 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 26 Mar 2020 06:47:38 +0000 (23:47 -0700)
.gitlab-ci.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..6fce9bb
--- /dev/null
@@ -0,0 +1,23 @@
+image: debian:10
+
+build:
+    stage: build
+    script:
+        - apt-get update && apt-get -y install build-essential git python3-dev python3-pip python3-setuptools python3-wheel pkg-config tcl-dev libreadline-dev bison flex libffi-dev
+
+        - git clone https://github.com/YosysHQ/yosys.git ../yosys
+        - pushd ../yosys
+        - make config-gcc
+        - make -j$(nproc)
+        - make install
+        - popd
+        - yosys -V
+
+        - git clone https://github.com/m-labs/nmigen.git ../nmigen
+        - pushd ../nmigen
+        - python3 setup.py develop
+        - popd
+
+        - python3 setup.py develop
+
+        - python3 setup.py test