Merge pull request #139 from enjoy-digital/travis-ci
travis-ci: avoid use of conda (setup is simple enough to avoid it)
This commit is contained in:
commit
38fe8a81dd
|
@ -14,7 +14,7 @@ args = parser.parse_args()
|
||||||
tests = [
|
tests = [
|
||||||
{
|
{
|
||||||
'id': 'litex_sim',
|
'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(),
|
'cwd': os.getcwd(),
|
||||||
'checkpoints': [
|
'checkpoints': [
|
||||||
{ 'timeout': 240, 'good': [b'\n\\s*BIOS built on[^\n]+\n'] },
|
{ 'timeout': 240, 'good': [b'\n\\s*BIOS built on[^\n]+\n'] },
|
||||||
|
|
34
.travis.yml
34
.travis.yml
|
@ -1,38 +1,22 @@
|
||||||
language: python
|
language: python
|
||||||
dist: Xenial
|
dist: bionic
|
||||||
python: "3.6"
|
python: "3.6"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export DL_DIR=$HOME/downloads
|
- sudo apt-get update
|
||||||
- mkdir -p $DL_DIR
|
- sudo apt-get -y install verilator libevent-dev libjson-c-dev
|
||||||
- cd $DL_DIR
|
- pip install pexpect
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
install:
|
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
|
# Get Migen / LiteX / Cores
|
||||||
- wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
- wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
||||||
- python3 litex_setup.py init install
|
- python3 litex_setup.py init install
|
||||||
|
|
||||||
# Simulation script dependences
|
before_script:
|
||||||
- pip install pexpect
|
# Get RISC-V toolchain
|
||||||
|
- wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6.tar.gz
|
||||||
# Replace litex' litedram with currently tested revision
|
- tar -xvf riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6.tar.gz
|
||||||
- cd $TRAVIS_BUILD_DIR
|
- export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin/
|
||||||
- ./setup.py install -f
|
|
||||||
|
|
||||||
script: ./.sim-test.py --sdram-module="$SDRAM_MODULE"
|
script: ./.sim-test.py --sdram-module="$SDRAM_MODULE"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue