Run `litex_setup.py` outside the git clone directory.
authorTim 'mithro' Ansell <me@mith.ro>
Mon, 6 Apr 2020 18:38:23 +0000 (11:38 -0700)
committerTim 'mithro' Ansell <me@mith.ro>
Mon, 6 Apr 2020 18:38:23 +0000 (11:38 -0700)
Otherwise it tries to overwrite the litex directory by cloning LiteX
into it.

.travis.yml

index eeddc7c78abc17f37249110de830e0884b44e393..c892607ad0d1ae08646c320e5ac7529e0cf4afe0 100644 (file)
@@ -4,8 +4,12 @@ python: "3.6"
 
 install:
   # Get Migen / LiteX / Cores
+  - cd ~/
   - wget https://raw.githubusercontent.com/enjoy-digital/litex/master/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