Merge branch 'master' of https://github.com/m-labs/migen
[litex.git] / .travis.yml
1 language: python
2 python:
3 - "3.4"
4
5 env:
6 global:
7 - PATH=$HOME/miniconda/bin:$PATH
8
9 before_install:
10 # Install Miniconda
11 - wget https://raw.githubusercontent.com/m-labs/artiq/master/.travis/get-anaconda.sh
12 - chmod +x get-anaconda.sh
13 - ./get-anaconda.sh
14 - source $HOME/miniconda/bin/activate py34
15 - conda install binstar numpydoc
16 install:
17 # Install iverilog package.
18 - "sudo add-apt-repository -y ppa:mithro/iverilog-backport"
19 - "sudo apt-get update"
20 - "sudo apt-get install iverilog"
21 - "iverilog -v; true"
22 # Build the vpi module.
23 - "(cd vpi; make; sudo make install)"
24 # Install verilator package
25 - "sudo apt-get install verilator"
26 - "verilator --version; true"
27 # Build and install Migen conda package
28 - "conda build conda/migen"
29 - "conda install $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2"
30
31 script:
32 # Run tests
33 - "python setup.py test"
34 # Generate HTML documentation
35 - "make -C doc html"
36
37 after_success:
38 # Upload Migen conda package to binstar
39 - binstar login --hostname $(hostname) --username $binstar_login --password $binstar_password
40 - binstar upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2
41
42 notifications:
43 email: false
44 irc:
45 channels:
46 - chat.freenode.net#m-labs
47 template:
48 - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
49 - "Build details : %{build_url}"