soc/integration/csr_bridge: use registered version only when SDRAM is present.
[litex.git] / .travis.yml
index ecaa5c49b9e4c870c32ecef58d9c3664747620ab..4f5b360578dded6c7a30796f2c75c97adec8dd2b 100644 (file)
@@ -1,52 +1,49 @@
-language: python
-python:
-  - "3.5"
+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
 
-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 py35
-  - 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
-  # workaround for https://github.com/conda/conda-build/issues/466
-  - "mkdir -p /home/travis/miniconda/conda-bld/linux-64"
-  - "conda index /home/travis/miniconda/conda-bld/linux-64"
-  - "conda build --python 3.5 conda/migen"
-  - "conda install $(conda build --output --python 3.5 conda/migen)"
-
-script:
-  # Run tests
-  - "python setup.py test"
-  # Generate HTML documentation
-  - "make -C doc html"
+  # Get Migen / LiteX / Cores
+  - cd ~/
+  - pip3 install requests
+  - 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
 
-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/noarch/migen-*.tar.bz2; fi
+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
 
-notifications:
-  email: false
-  irc:
-    channels:
-      - chat.freenode.net#m-labs
-    template:
-      - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
-      - "Build details : %{build_url}"
+script:
+  - cd $TRAVIS_BUILD_DIR
+  - python3 setup.py test