From: Sebastien Bourdeauducq Date: Mon, 2 Nov 2015 03:20:26 +0000 (+0800) Subject: add travis.yml X-Git-Tag: 24jan2021_ls180~2106^2~11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e85f1313384b9fee715ee508582f08901edb5f5;p=litex.git add travis.yml --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..1b3d9ab1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: python +python: + - "3.5" + +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 + - source $HOME/miniconda/bin/activate py35 + - conda install anaconda-client +install: + # 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" + - "conda build --python 3.5 conda/misoc" + - "conda install $(conda build --output --python 3.5 conda/misoc)" + +after_success: + - 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/misoc-*.tar.bz2; fi + +notifications: + email: false + irc: + channels: + - chat.freenode.net#m-labs + template: + - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" + - "Build details : %{build_url}"