X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=.travis.yml;h=265ad9a92d7d54cb4d248778098324a3d73eb096;hb=526ba1b165a09f6c0b51646a4b3124b345428d28;hp=399655730863be15ef8844fa9f4309b2d518f1be;hpb=b2c000e982a482582f43a1bb05d2c57ea5dd4df3;p=litex.git diff --git a/.travis.yml b/.travis.yml index 39965573..265ad9a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,49 +1,16 @@ language: python -python: - - "3.4" +dist: Xenial +python: "3.6" -env: - global: - - PATH=$HOME/miniconda/bin:$PATH - -before_install: - # Install Miniconda - - wget https://raw.githubusercontent.com/m-labs/artiq/master/.travis/get-anaconda.sh - - chmod +x get-anaconda.sh - - ./get-anaconda.sh - - source $HOME/miniconda/bin/activate py34 - - conda install anaconda-client numpydoc 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)" - # Install verilator package - - "sudo apt-get install verilator" - - "verilator --version; true" - # Build and install Migen conda package - - "conda build conda/migen" - - "conda install migen --use-local" - -script: - # Run tests - - "python setup.py test" - # Generate HTML documentation - - "make -C doc html" + # Get Migen / LiteX / Cores + - wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py + - python3 litex_setup.py init install -after_success: - # Upload Migen conda package to binstar - - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda login --hostname $(hostname) --username $binstar_login --password $binstar_password; fi - - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2; fi +before_script: + # Get RISC-V toolchain + - wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6.tar.gz + - tar -xvf riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6.tar.gz + - export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin/ -notifications: - email: false - irc: - channels: - - chat.freenode.net#m-labs - template: - - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" - - "Build details : %{build_url}" +script: python setup.py test