soc/integration/csr_bridge: use registered version only when SDRAM is present.
[litex.git] / .travis.yml
index b05a4b56611db5eb2ed960831406e28b8d9574b3..4f5b360578dded6c7a30796f2c75c97adec8dd2b 100644 (file)
@@ -1,14 +1,49 @@
-language: python
-python:
- - "3.6"
+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:
- - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- - bash miniconda.sh -b -p $HOME/miniconda
- - export PATH="$HOME/miniconda/bin:$PATH"
- - hash -r
- - conda config --set always_yes yes --set changeps1 no
+  # 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
+
+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:
- - conda env create -f environment.yml
- - ./.travis-build-socs.sh
+  - cd $TRAVIS_BUILD_DIR
+  - python3 setup.py test