forked from M-Labs/artiq
travis: disable (superseded by our buildbot).
This commit is contained in:
parent
c2ad949d85
commit
1248e5e7ce
58
.travis.yml
58
.travis.yml
|
@ -1,58 +0,0 @@
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- '3.5'
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
sudo: false
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: "DUk/Ihg8KbbzEgPF0qrHqlxU8e8eET9i/BtzNvFddIGX4HP/P2qz0nk3cVkmjuWhqJXSbC22RdKME9qqPzw6fJwJ6dpJ3OR6dDmSd7rewavq+niwxu52PVa+yK8mL4yf1terM7QQ5tIRf+yUL9qGKrZ2xyvEuRit6d4cFep43Ws="
|
|
||||||
matrix:
|
|
||||||
- BUILD_SOC=none
|
|
||||||
- BUILD_SOC=pipistrello-nist_qc1
|
|
||||||
- BUILD_SOC=kc705-nist_qc1
|
|
||||||
- BUILD_SOC=kc705-nist_qc2
|
|
||||||
install:
|
|
||||||
- mkdir -p $HOME/.m-labs
|
|
||||||
- if [ $TRAVIS_PULL_REQUEST != false ]; then BUILD_SOC=none; fi
|
|
||||||
- if [ $BUILD_SOC != none ]; then ./.travis/get-xilinx.sh; fi
|
|
||||||
- if [ $BUILD_SOC != none ]; then ./.travis/get-toolchain.sh; fi
|
|
||||||
- . ./.travis/get-anaconda.sh
|
|
||||||
- conda install -q pip coverage anaconda-client cython
|
|
||||||
- pip install coveralls
|
|
||||||
# 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
|
|
||||||
script:
|
|
||||||
- conda build conda/artiq
|
|
||||||
- conda install -q --use-local artiq
|
|
||||||
- |
|
|
||||||
if [ $BUILD_SOC == none ]; then
|
|
||||||
PACKAGES="$(conda build --output conda/artiq) $PACKAGES"
|
|
||||||
coverage run --source=artiq setup.py test
|
|
||||||
make -C doc/manual html
|
|
||||||
else
|
|
||||||
PACKAGES="$(conda build --output conda/artiq-$BUILD_SOC) $PACKAGES"
|
|
||||||
conda build conda/artiq-$BUILD_SOC
|
|
||||||
fi
|
|
||||||
after_success:
|
|
||||||
- |
|
|
||||||
if [ "$TRAVIS_BRANCH" == "master" -a "$PACKAGES" != "" ]; then
|
|
||||||
anaconda -q login --hostname $(hostname) --username $binstar_login --password $binstar_password
|
|
||||||
anaconda -q upload --user $binstar_login --channel dev $PACKAGES
|
|
||||||
anaconda -q logout
|
|
||||||
fi
|
|
||||||
- coveralls
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients:
|
|
||||||
- rjordens@nist.gov
|
|
||||||
on_success: always
|
|
||||||
on_failure: never
|
|
||||||
irc:
|
|
||||||
channels:
|
|
||||||
- chat.freenode.net#m-labs
|
|
||||||
template:
|
|
||||||
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
||||||
- "Build details : %{build_url}"
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
export PATH=$HOME/miniconda/bin:$PATH
|
|
||||||
wget http://repo.continuum.io/miniconda/Miniconda3-latest-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 install conda-build jinja2
|
|
||||||
conda config --add channels https://conda.anaconda.org/m-labs/channel/main
|
|
||||||
conda config --add channels https://conda.anaconda.org/m-labs/channel/dev
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
packages="http://us.archive.ubuntu.com/ubuntu/pool/universe/i/iverilog/iverilog_0.9.7-1_amd64.deb"
|
|
||||||
|
|
||||||
mkdir -p packages
|
|
||||||
|
|
||||||
for p in $packages
|
|
||||||
do
|
|
||||||
wget $p
|
|
||||||
pkg_name=$(echo $p | sed -e 's!.*/\(.*\)\.deb!\1\.deb!')
|
|
||||||
dpkg -x $pkg_name packages
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "export LD_LIBRARY_PATH=$PWD/packages/usr/lib/x86_64-linux-gnu" >> $HOME/.m-labs/build_settings.sh
|
|
||||||
echo "export PATH=$PWD/packages/usr/bin:\$PATH" >> $HOME/.m-labs/build_settings.sh
|
|
|
@ -1,40 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# Copyright (C) 2014, 2015 M-Labs Limited
|
|
||||||
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
wget http://sionneau.net/artiq/Xilinx/xilinx_ise_14.7_s3_s6.tar.gz.gpg
|
|
||||||
echo "$secret" | gpg --passphrase-fd 0 xilinx_ise_14.7_s3_s6.tar.gz.gpg
|
|
||||||
tar -C $HOME/ -xzf xilinx_ise_14.7_s3_s6.tar.gz
|
|
||||||
wget http://sionneau.net/artiq/Xilinx/Xilinx_Vivado_2015_1_k7.tar.gz.gpg
|
|
||||||
echo "$secret" | gpg --passphrase-fd 0 Xilinx_Vivado_2015_1_k7.tar.gz.gpg
|
|
||||||
tar -C $HOME/ -xzf Xilinx_Vivado_2015_1_k7.tar.gz
|
|
||||||
|
|
||||||
# Relocate Vivado from /opt to $HOME
|
|
||||||
for i in $(grep -Rsn "/opt/Xilinx" $HOME/Xilinx | cut -d':' -f1)
|
|
||||||
do
|
|
||||||
sed -i -e "s!/opt!$HOME!g" $i
|
|
||||||
done
|
|
||||||
|
|
||||||
# Relocate ISE from /opt to $HOME
|
|
||||||
for i in $(grep -Rsn "/opt/Xilinx" $HOME/opt | cut -d':' -f1)
|
|
||||||
do
|
|
||||||
sed -i -e "s!/opt/Xilinx!$HOME/opt/Xilinx!g" $i
|
|
||||||
done
|
|
||||||
|
|
||||||
wget http://sionneau.net/artiq/Xilinx/Xilinx.lic.gpg
|
|
||||||
echo "$secret" | gpg --passphrase-fd 0 Xilinx.lic.gpg
|
|
||||||
mkdir -p ~/.Xilinx
|
|
||||||
mv Xilinx.lic ~/.Xilinx/Xilinx.lic
|
|
||||||
|
|
||||||
git clone https://github.com/m-labs/impersonate_macaddress
|
|
||||||
make -C impersonate_macaddress
|
|
||||||
# Tell mibuild where Xilinx toolchains are installed
|
|
||||||
# and feed it the mac address corresponding to the license
|
|
||||||
cat >> $HOME/.m-labs/build_settings.sh << EOF
|
|
||||||
MISOC_EXTRA_ISE_CMDLINE="--gateware-toolchain-path $HOME/opt/Xilinx/"
|
|
||||||
MISOC_EXTRA_VIVADO_CMDLINE="--gateware-toolchain-path $HOME/Xilinx/Vivado"
|
|
||||||
export MACADDR=$macaddress
|
|
||||||
export LD_PRELOAD=$PWD/impersonate_macaddress/impersonate_macaddress.so
|
|
||||||
EOF
|
|
Loading…
Reference in New Issue