litex/.travis.yml

53 lines
1.7 KiB
YAML
Raw Normal View History

language: python
python:
2015-10-04 11:08:14 -04:00
- "3.5"
2015-04-14 04:28:57 -04:00
env:
global:
- PATH=$HOME/miniconda/bin:$PATH
before_install:
# Install Miniconda
- wget https://raw.githubusercontent.com/m-labs/artiq/master/.travis/get-anaconda.sh
- chmod +x get-anaconda.sh
- ./get-anaconda.sh
2015-10-04 11:11:16 -04:00
- source $HOME/miniconda/bin/activate py35
2015-07-31 01:46:28 -04:00
- conda install anaconda-client numpydoc
install:
2015-04-14 04:28:57 -04:00
# Install iverilog package.
- "sudo add-apt-repository -y ppa:mithro/iverilog-backport"
- "sudo apt-get update"
- "sudo apt-get install iverilog"
- "iverilog -v; true"
# Build the vpi module.
- "(cd vpi; make; sudo make install)"
2015-04-22 00:29:59 -04:00
# Install verilator package
- "sudo apt-get install verilator"
- "verilator --version; true"
# Build and install Migen conda package
# workaround for https://github.com/conda/conda-build/issues/466
- "mkdir -p /home/travis/miniconda/conda-bld/linux-64"
- "conda index /home/travis/miniconda/conda-bld/linux-64"
2015-10-04 12:10:04 -04:00
- "conda build --python 3.5 conda/migen"
- "conda install $(conda build --output --python 3.5 conda/migen)"
2015-04-14 04:28:57 -04:00
script:
# Run tests
2015-04-14 04:28:57 -04:00
- "python setup.py test"
# Generate HTML documentation
- "make -C doc html"
after_success:
# Upload Migen conda package to binstar
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda login --hostname $(hostname) --username $binstar_login --password $binstar_password; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/noarch/migen-*.tar.bz2; fi
2015-04-14 11:30:52 -04:00
notifications:
2015-04-14 11:45:33 -04:00
email: false
2015-04-14 11:30:52 -04:00
irc:
channels:
- chat.freenode.net#m-labs
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Build details : %{build_url}"