Make travis use litex_setup.py for GCC download.
authorTim 'mithro' Ansell <me@mith.ro>
Mon, 6 Apr 2020 23:54:25 +0000 (16:54 -0700)
committerTim 'mithro' Ansell <me@mith.ro>
Tue, 7 Apr 2020 00:16:55 +0000 (17:16 -0700)
.travis.yml

index c892607ad0d1ae08646c320e5ac7529e0cf4afe0..9ff86a27dafbe9ab051bd336c265d649ae7c0b97 100644 (file)
@@ -5,7 +5,7 @@ python: "3.6"
 install:
   # Get Migen / LiteX / Cores
   - cd ~/
-  - wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
+  - cp $TRAVIS_BUILD_DIR/litex_setup.py .
   - python3 litex_setup.py init install
   # Install the LiteX version being tested.
   - cd $TRAVIS_BUILD_DIR
@@ -13,8 +13,10 @@ install:
 
 before_script:
   # Get RISC-V toolchain
-  - wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz
-  - tar -xvf riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz
+  - cd ~/
+  - python3 litex_setup.py gcc
   - export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14/bin/
 
-script: python setup.py test
+script:
+  - cd $TRAVIS_BUILD_DIR
+  - python setup.py test