add travis.yml
[litex.git] / .travis.yml
1 language: python
2 python:
3 - "3.5"
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 py35
15 - conda install anaconda-client
16 install:
17 # workaround for https://github.com/conda/conda-build/issues/466
18 - "mkdir -p /home/travis/miniconda/conda-bld/linux-64"
19 - "conda index /home/travis/miniconda/conda-bld/linux-64"
20 - "conda build --python 3.5 conda/misoc"
21 - "conda install $(conda build --output --python 3.5 conda/misoc)"
22
23 after_success:
24 - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda login --hostname $(hostname) --username $binstar_login --password $binstar_password; fi
25 - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/noarch/misoc-*.tar.bz2; fi
26
27 notifications:
28 email: false
29 irc:
30 channels:
31 - chat.freenode.net#m-labs
32 template:
33 - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
34 - "Build details : %{build_url}"