Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17984ad

Browse files
committedAug 31, 2019
Travis: build Yosys and nextpnr.
1 parent 4575ad0 commit 17984ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ before_install:
1111
- sudo apt install sdcc
1212
install:
1313
- "(cd vendor/libfx2/software && SDAR='sdcclib r' python setup.py install)"
14+
- git clone https://github.com/YosysHQ/yosys
15+
- (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)
16+
- git clone https://github.com/YosysHQ/nextpnr
17+
- (cd nextpnr && if ! nextpnr-ice40 --version || [ $(git rev-parse HEAD $(nextpnr-ice40 --version | awk 'match($0,/sha1 ([0-9a-f]+)/,m) { print m[1] }') | uniq | wc -l) != 1 ]; then sudo apt install libeigen3-dev python3-dev libboost-all-dev && mkdir build-ice40 && cd build-ice40 && cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DBUILD_GUI=OFF && make install; fi)
1418
script:
1519
- "(cd software && python setup.py install)"
1620
- "(cd software && python setup.py test)"

0 commit comments

Comments
 (0)
Please sign in to comment.