Skip to content

Commit

Permalink
travis-ci: avoid use of conda (setup is simple enough to avoid it)
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Feb 12, 2020
1 parent cd4e007 commit 8316ed3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .sim-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
tests = [
{
'id': 'litex_sim',
'command': f'litex_sim --with-sdram --sdram-module {args.sdram_module}',
'command': f'python3 -m litex.tools.litex_sim --with-sdram --sdram-module {args.sdram_module}',
'cwd': os.getcwd(),
'checkpoints': [
{ 'timeout': 240, 'good': [b'\n\\s*BIOS built on[^\n]+\n'] },
Expand Down
34 changes: 9 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
language: python
dist: Xenial
dist: bionic
python: "3.6"

before_install:
- export DL_DIR=$HOME/downloads
- mkdir -p $DL_DIR
- cd $DL_DIR

# Install and configure Conda
- wget -O miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- sudo apt-get update
- sudo apt-get -y install verilator libevent-dev libjson-c-dev
- pip install pexpect

install:
# Create Conda environment with required packages
- conda create -q -n litedram -c 'conda-forge' -c 'litex-hub'
verilator libevent json-c
gcc-riscv64-elf-nostdc
- conda activate litedram

# Get Migen / LiteX / Cores
- wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
- python3 litex_setup.py init install

# Simulation script dependences
- pip install pexpect

# Replace litex' litedram with currently tested revision
- cd $TRAVIS_BUILD_DIR
- ./setup.py install -f
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/

script: ./.sim-test.py --sdram-module="$SDRAM_MODULE"

Expand Down

0 comments on commit 8316ed3

Please sign in to comment.