2015-04-14 04:28:54 -04:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.4"
|
2015-04-14 04:28:57 -04:00
|
|
|
|
2015-04-21 14:26:40 -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
|
2015-05-12 07:58:08 -04:00
|
|
|
- ./get-anaconda.sh
|
2015-04-21 14:26:40 -04:00
|
|
|
- source $HOME/miniconda/bin/activate py34
|
2015-05-12 08:06:16 -04:00
|
|
|
- conda install binstar numpydoc
|
2015-04-14 04:28:54 -04:00
|
|
|
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.
|
2015-04-14 04:28:54 -04:00
|
|
|
- "(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"
|
2015-04-21 14:26:40 -04:00
|
|
|
# Build and install Migen conda package
|
|
|
|
- "conda build conda/migen"
|
2015-06-29 18:42:13 -04:00
|
|
|
- "conda install migen --use-local"
|
2015-04-14 04:28:57 -04:00
|
|
|
|
2015-04-14 04:28:54 -04:00
|
|
|
script:
|
2015-04-21 14:26:40 -04:00
|
|
|
# Run tests
|
2015-04-14 04:28:57 -04:00
|
|
|
- "python setup.py test"
|
2015-04-21 14:26:40 -04:00
|
|
|
# Generate HTML documentation
|
|
|
|
- "make -C doc html"
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
# Upload Migen conda package to binstar
|
|
|
|
- binstar login --hostname $(hostname) --username $binstar_login --password $binstar_password
|
|
|
|
- binstar upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2
|
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}"
|