forked from M-Labs/artiq
add .travis.yml
This commit is contained in:
parent
f848a7ab25
commit
0a91f86b06
41
.travis.yml
Normal file
41
.travis.yml
Normal file
@ -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
|
9
.travis/get-anaconda.sh
Executable file
9
.travis/get-anaconda.sh
Executable file
@ -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 $@
|
11
.travis/get-toolchain.sh
Executable file
11
.travis/get-toolchain.sh
Executable file
@ -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
|
9
.travis/get-xilinx.sh
Executable file
9
.travis/get-xilinx.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user