X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=.travis.yml;h=8f491ae739ee301bace801fb38980757d49cc232;hb=e853ad4b616efc4ee80f3913a2a316a7f0c94fd3;hp=bb0b0d8ff85222025878a32d3d73b00ca9b240da;hpb=9e7dc175a4483985a1816952093d6cea5eab09a6;p=litex.git diff --git a/.travis.yml b/.travis.yml index bb0b0d8f..8f491ae7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,48 @@ -language: python -python: - - "3.4" +jobs: + include: + - os: linux + dist: xenial + language: python + python: "3.6" + - os: linux + dist: xenial + language: python + python: "3.7" + - os: linux + dist: xenial + language: python + python: "3.8" + - os: osx + osx_image: xcode10.2 # Includes Python 3.7 + language: shell + - os: windows + language: shell + before_install: + - choco info python3 + - choco install python3 + - export PATH=/c/Python38/:$PATH + - cp -a /c/Python38/python.exe /c/Python38/python3.exe + allow_failures: + - os: windows + language: shell install: - # Install iverilog package. - - "sudo add-apt-repository -y ppa:mithro/iverilog-backport" - - "sudo apt-get update" - - "sudo apt-get install iverilog" - - "iverilog -v; true" - # Build the vpi module. - - "(cd vpi; make; sudo make install)" + # Get Migen / LiteX / Cores + - cd ~/ + - cp $TRAVIS_BUILD_DIR/litex_setup.py . + - python3 litex_setup.py init install + # Install the LiteX version being tested + - cd $TRAVIS_BUILD_DIR + - python3 setup.py install + +before_script: + # Get RISC-V toolchain + - cd ~/ + - python3 litex_setup.py gcc + - ls $PWD/riscv64-*/bin/ + - export PATH=$PATH:$(echo $PWD/riscv64-*/bin/) + - riscv64-unknown-elf-gcc --version script: - - "python setup.py test" + - cd $TRAVIS_BUILD_DIR + - python3 setup.py test