language: python
python:
  - "3.6"
before_install:
  - export d=`pwd`
  - export PYTHON_EXE=`which python`
  - sudo apt-get update -qq
  - sudo apt-get install -y iverilog
  - git clone https://github.com/jandecaluwe/myhdl.git
  - cd $d/myhdl && sudo $PYTHON_EXE setup.py install
  - cd $d/myhdl/cosimulation/icarus && make && sudo install -m 0755 -D ./myhdl.vpi /usr/lib/x86_64-linux-gnu/ivl/myhdl.vpi
  - cd $d
script:
  - cd tb && py.test

