From 0a91f86b066dd6dc9ef627fc4b0fa02532f5e8f8 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 6 Nov 2014 18:53:38 -0700 Subject: [PATCH] add .travis.yml --- .travis.yml | 41 ++++++++++++++++++++++++++++++++++++++++ .travis/get-anaconda.sh | 9 +++++++++ .travis/get-toolchain.sh | 11 +++++++++++ .travis/get-xilinx.sh | 9 +++++++++ 4 files changed, 70 insertions(+) create mode 100644 .travis.yml create mode 100755 .travis/get-anaconda.sh create mode 100755 .travis/get-toolchain.sh create mode 100755 .travis/get-xilinx.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..0135b86a8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +language: python +python: + - '3.4' +env: + global: + - MSCDIR=$TRAVIS_BUILD_DIR/misoc + - PATH=$HOME/miniconda/bin:/usr/local/llvm-or1k/bin:$PATH + - CC=gcc-4.7 + - CXX=g++-4.7 + - ARTIQ_NO_HARDWARE=1 + - secure: DgApzqX7Hidh+CVYVGDvXXc/a/SsF22t18YDx0KNqRKNQMBdeMEfAWMI1kXnPPxazItV4nljvrwOWaPaTY6wlJvV2r1W90zJsN8UVP8cMt2CudUiKBVRGvmr4Z6zhkifaEfzX9pLoCmHhLVyUjGlXPd0dC8GJVROp11FZm1l+rM= +before_install: + - ./.travis/get-toolchain.sh + - ./.travis/get-xilinx.sh + - ./.travis/get-anaconda.sh pip coverage numpy scipy sphinx + - source $HOME/miniconda/bin/activate py34 + - sudo apt-get install --force-yes -y iverilog + - pip install --src . -e 'git+https://github.com/m-labs/migen.git@master#egg=migen' + - mkdir vpi + - iverilog-vpi --name=vpi/migensim migen/vpi/main.c migen/vpi/ipc.c + - git clone --recursive https://github.com/m-labs/misoc + - pip install --src . -e 'git+https://github.com/nist-ionstorage/llvmlite.git@artiq#egg=llvmlite' + - pip install coveralls +install: + - pip install -e . +script: + - coverage run --source=artiq setup.py test + - make -C doc/manual html || true + - cd misoc; python make.py -X ../soc -t artiq build-headers build-bios; cd .. + - make -C soc/runtime + - cd misoc; python make.py -X ../soc -t artiq build-bitstream; cd .. +after_success: + coveralls +notifications: + email: false + irc: + channels: + - chat.freenode.net#nist-ionstorage + webhooks: + urls: + - https://webhooks.gitter.im/e/d26782523952bfa53814 diff --git a/.travis/get-anaconda.sh b/.travis/get-anaconda.sh new file mode 100755 index 000000000..687efdbf8 --- /dev/null +++ b/.travis/get-anaconda.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wget http://repo.continuum.io/miniconda/Miniconda3-3.7.3-Linux-x86_64.sh -O miniconda.sh +bash miniconda.sh -b -p $HOME/miniconda +hash -r +conda config --set always_yes yes --set changeps1 no +conda update -q conda +conda info -a +conda create -q -n py34 python=$TRAVIS_PYTHON_VERSION $@ diff --git a/.travis/get-toolchain.sh b/.travis/get-toolchain.sh new file mode 100755 index 000000000..23ff13bf4 --- /dev/null +++ b/.travis/get-toolchain.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test +sudo apt-add-repository -y "deb http://www.phys.ethz.ch/~robertjo/artiq-dev ./" +sudo apt-add-repository -y "deb http://archive.ubuntu.com/ubuntu saucy main universe" +sudo apt-get -qq --force-yes -y update +sudo apt-get install --force-yes -y gcc-4.7 g++-4.7 artiq-dev +or1k-elf-as --version +or1k-elf-gcc --version +clang --version +llvm-as --version || true diff --git a/.travis/get-xilinx.sh b/.travis/get-xilinx.sh new file mode 100755 index 000000000..b8ec01992 --- /dev/null +++ b/.travis/get-xilinx.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wget http://www.phys.ethz.ch/~robertjo/xilinx_ise_14.7_s3_s6.tar.gz.gpg +echo "$secret" | gpg --passphrase-fd 0 xilinx_ise_14.7_s3_s6.tar.gz.gpg +sudo tar -C / -xzf xilinx_ise_14.7_s3_s6.tar.gz +wget http://www.phys.ethz.ch/~robertjo/xilinx_webpack.lic.gpg +echo "$secret" | gpg --passphrase-fd 0 xilinx_webpack.lic.gpg +mkdir ~/.Xilinx +mv xilinx_webpack.lic ~/.Xilinx/Xilinx.lic