Travis: cache Yosys installation explicitly.
This commit is contained in:
parent
c7f9386eab
commit
51a92bc870
|
@ -6,11 +6,13 @@ python:
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "$HOME/.ccache"
|
- "$HOME/.ccache"
|
||||||
|
- "$HOME/.local"
|
||||||
before_install:
|
before_install:
|
||||||
- export PATH="/usr/lib/ccache:$PATH"
|
- export PATH="/usr/lib/ccache:$HOME/.local/bin:$PATH"
|
||||||
install:
|
install:
|
||||||
- pip install coverage codecov pyvcd
|
- pip install coverage codecov pyvcd
|
||||||
- git clone https://github.com/YosysHQ/yosys && (cd yosys && make CONFIG=gcc ENABLE_ABC=0)
|
- git clone https://github.com/YosysHQ/yosys
|
||||||
|
- (cd yosys && if ! yosys -V || [ $(git rev-parse HEAD $(yosys -V | awk 'match($0,/sha1 ([0-9a-f]+)/,m) { print m[1] }') | uniq | wc -l) != 1 ]; then make CONFIG=gcc ENABLE_ABC=0 PREFIX=$HOME/.local install; fi)
|
||||||
script:
|
script:
|
||||||
- coverage run -m unittest discover
|
- coverage run -m unittest discover
|
||||||
- codecov
|
- codecov
|
||||||
|
|
Loading…
Reference in a new issue