2019-01-21 09:59:42 -05:00
|
|
|
language: python
|
2020-02-12 02:34:39 -05:00
|
|
|
dist: bionic
|
2019-01-21 10:36:17 -05:00
|
|
|
python: "3.6"
|
2019-01-21 09:59:42 -05:00
|
|
|
|
2020-01-31 11:31:11 -05:00
|
|
|
before_install:
|
2020-02-12 02:34:39 -05:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get -y install verilator libevent-dev libjson-c-dev
|
2020-02-17 03:28:00 -05:00
|
|
|
- pip install pexpect numpy matplotlib pandas jinja2
|
2020-01-31 11:31:11 -05:00
|
|
|
|
2019-01-21 09:59:42 -05:00
|
|
|
install:
|
2019-04-22 01:30:02 -04:00
|
|
|
# Get Migen / LiteX / Cores
|
2020-04-07 06:24:04 -04:00
|
|
|
- cd ~/
|
2019-04-22 01:30:02 -04:00
|
|
|
- wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
|
|
|
- python3 litex_setup.py init install
|
2020-04-07 06:24:04 -04:00
|
|
|
# Install the version being tested
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- python3 setup.py install
|
2019-04-22 01:30:02 -04:00
|
|
|
|
2020-02-12 02:34:39 -05:00
|
|
|
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/
|
2020-01-31 11:31:11 -05:00
|
|
|
|
|
|
|
script: ./.sim-test.py --sdram-module="$SDRAM_MODULE"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: "Unit tests"
|
2020-04-07 06:24:04 -04:00
|
|
|
script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- python setup.py test
|
2020-01-31 11:31:11 -05:00
|
|
|
|
|
|
|
- stage: "Simulations"
|
|
|
|
env: SDRAM_MODULE=IS42S16160
|
|
|
|
- env: SDRAM_MODULE=IS42S16320
|
|
|
|
- env: SDRAM_MODULE=MT48LC4M16
|
|
|
|
- env: SDRAM_MODULE=MT48LC16M16
|
|
|
|
- env: SDRAM_MODULE=AS4C16M16
|
|
|
|
- env: SDRAM_MODULE=AS4C32M16
|
|
|
|
- env: SDRAM_MODULE=AS4C32M8
|
|
|
|
- env: SDRAM_MODULE=M12L64322A
|
|
|
|
- env: SDRAM_MODULE=M12L16161A
|
|
|
|
- env: SDRAM_MODULE=MT46V32M16
|
|
|
|
- env: SDRAM_MODULE=MT46H32M16
|
|
|
|
- env: SDRAM_MODULE=MT46H32M32
|
|
|
|
- env: SDRAM_MODULE=MT47H128M8
|
|
|
|
- env: SDRAM_MODULE=MT47H32M16
|
|
|
|
- env: SDRAM_MODULE=MT47H64M16
|
|
|
|
- env: SDRAM_MODULE=P3R1GE4JGF
|
|
|
|
- env: SDRAM_MODULE=MT41K64M16
|
|
|
|
- env: SDRAM_MODULE=MT41J128M16
|
|
|
|
- env: SDRAM_MODULE=MT41J256M16
|
|
|
|
- env: SDRAM_MODULE=K4B1G0446F
|
|
|
|
- env: SDRAM_MODULE=K4B2G1646F
|
|
|
|
- env: SDRAM_MODULE=H5TC4G63CFR
|
|
|
|
- env: SDRAM_MODULE=IS43TR16128B
|
|
|
|
- env: SDRAM_MODULE=MT8JTF12864
|
|
|
|
- env: SDRAM_MODULE=MT8KTF51264
|
|
|
|
- env: SDRAM_MODULE=MT18KSF1G72HZ
|
|
|
|
- env: SDRAM_MODULE=AS4C256M16D3A
|
|
|
|
- env: SDRAM_MODULE=MT16KTF1G64HZ
|
|
|
|
- env: SDRAM_MODULE=EDY4016A
|
|
|
|
- env: SDRAM_MODULE=MT40A1G8
|
|
|
|
- env: SDRAM_MODULE=MT40A512M16
|
2019-01-21 10:36:17 -05:00
|
|
|
|
2020-02-17 03:28:00 -05:00
|
|
|
- stage: Benchmarks
|
|
|
|
script:
|
2020-02-19 07:34:32 -05:00
|
|
|
- python3 -m test.run_benchmarks test/benchmarks.yml --results-cache cache.json --html --heartbeat 60 --timeout 540
|
2020-02-17 03:28:00 -05:00
|
|
|
# move benchmark artifacts to gh-pages/ directory that will be pushed to gh-pages branch
|
|
|
|
- mkdir -p gh-pages
|
|
|
|
- mv html/summary.html gh-pages/index.html
|
|
|
|
- mv cache.json gh-pages/cache.json
|
|
|
|
- touch gh-pages/.nojekyll
|
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
token: $GITHUB_TOKEN
|
|
|
|
keep_history: true
|
|
|
|
local_dir: gh-pages
|
|
|
|
on:
|
|
|
|
branch: master
|