Travis: build and cache Yosys.
authorwhitequark <whitequark@whitequark.org>
Mon, 17 Dec 2018 15:51:55 +0000 (15:51 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 17 Dec 2018 17:21:42 +0000 (17:21 +0000)
.travis.yml

index 73aba4db603fa667bcf346d378c5a163b2c8e5f5..2fd2ffb1bfde5bd191ce0dbf59d5a286fc322eab 100644 (file)
@@ -3,8 +3,14 @@ language: python
 python:
   - "3.6"
   - "3.7"
+cache:
+  directories:
+    - "$HOME/.ccache"
+before_install:
+  - export PATH="/usr/lib/ccache:$PATH"
 install:
   - pip install coverage codecov pyvcd
+  - git clone https://github.com/YosysHQ/yosys && (cd yosys && make CONFIG=gcc ENABLE_ABC=0)
 script:
   - coverage run -m unittest discover
   - codecov