2014-11-07 09:53:38 +08:00
|
|
|
language: python
|
|
|
|
python:
|
2015-10-04 23:03:31 +08:00
|
|
|
- '3.5'
|
2015-06-13 14:34:31 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-04-04 22:27:43 +08:00
|
|
|
sudo: false
|
2014-11-07 09:53:38 +08:00
|
|
|
env:
|
|
|
|
global:
|
2015-02-05 17:55:16 +08:00
|
|
|
- secure: "DUk/Ihg8KbbzEgPF0qrHqlxU8e8eET9i/BtzNvFddIGX4HP/P2qz0nk3cVkmjuWhqJXSbC22RdKME9qqPzw6fJwJ6dpJ3OR6dDmSd7rewavq+niwxu52PVa+yK8mL4yf1terM7QQ5tIRf+yUL9qGKrZ2xyvEuRit6d4cFep43Ws="
|
2015-10-09 21:14:13 +08:00
|
|
|
matrix:
|
2015-10-22 17:59:18 +08:00
|
|
|
- BUILD_SOC=none
|
2015-10-22 20:08:40 +08:00
|
|
|
- BUILD_SOC=pipistrello-nist_qc1
|
2015-10-22 21:00:31 +08:00
|
|
|
- BUILD_SOC=kc705-nist_qc1
|
|
|
|
- BUILD_SOC=kc705-nist_qc2
|
2015-10-22 17:59:18 +08:00
|
|
|
install:
|
2015-10-22 20:08:40 +08:00
|
|
|
- mkdir -p $HOME/.m-labs
|
2015-10-22 17:59:18 +08:00
|
|
|
- if [ $TRAVIS_PULL_REQUEST != false ]; then BUILD_SOC=none; fi
|
2015-10-22 20:08:40 +08:00
|
|
|
- if [ $BUILD_SOC != none ]; then ./.travis/get-xilinx.sh; fi
|
|
|
|
- if [ $BUILD_SOC != none ]; then ./.travis/get-toolchain.sh; fi
|
|
|
|
- if [ $BUILD_SOC != none ]; then ./.travis/get-misoc.sh; fi
|
2015-06-26 02:40:04 +08:00
|
|
|
- . ./.travis/get-anaconda.sh
|
2015-10-04 23:03:31 +08:00
|
|
|
- source $HOME/miniconda/bin/activate py35
|
2015-10-22 20:08:40 +08:00
|
|
|
- conda install -q pip coverage anaconda-client cython
|
2014-11-07 09:53:38 +08:00
|
|
|
- pip install coveralls
|
2015-10-20 18:49:27 +08:00
|
|
|
# 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
|
2014-11-07 09:53:38 +08:00
|
|
|
script:
|
2015-10-22 17:59:18 +08:00
|
|
|
- conda build --python 3.5 conda/artiq
|
|
|
|
- conda install -q --use-local artiq
|
|
|
|
- |
|
|
|
|
if [ $BUILD_SOC == none ]; then
|
|
|
|
PACKAGES="$(conda build --output --python 3.5 conda/artiq) $PACKAGES"
|
|
|
|
coverage run --source=artiq setup.py test
|
|
|
|
make -C doc/manual html
|
2015-10-22 20:08:40 +08:00
|
|
|
else
|
|
|
|
PACKAGES="$(conda build --output --python 3.5 conda/artiq-$BUILD_SOC) $PACKAGES"
|
|
|
|
conda build --python 3.5 conda/artiq-$BUILD_SOC
|
2015-10-22 17:59:18 +08:00
|
|
|
fi
|
2014-11-07 09:53:38 +08:00
|
|
|
after_success:
|
2015-10-09 21:27:04 +08:00
|
|
|
- |
|
2015-10-22 17:59:18 +08:00
|
|
|
if [ "$TRAVIS_BRANCH" == "master" -a "$PACKAGES" != "" ]; then
|
2015-10-09 21:27:04 +08:00
|
|
|
anaconda -q login --hostname $(hostname) --username $binstar_login --password $binstar_password
|
2015-10-22 17:59:18 +08:00
|
|
|
anaconda -q upload --user $binstar_login --channel dev $PACKAGES
|
2015-10-09 21:27:04 +08:00
|
|
|
anaconda -q logout
|
|
|
|
fi
|
2015-03-04 00:23:34 +08:00
|
|
|
- coveralls
|
2014-11-07 09:53:38 +08:00
|
|
|
notifications:
|
2015-07-05 12:09:04 +08:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- rjordens@nist.gov
|
|
|
|
on_success: always
|
|
|
|
on_failure: never
|
2014-11-07 09:53:38 +08:00
|
|
|
irc:
|
|
|
|
channels:
|
2015-02-05 11:40:33 +08:00
|
|
|
- chat.freenode.net#m-labs
|
2015-02-06 13:17:01 +08:00
|
|
|
template:
|
|
|
|
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
|
|
- "Build details : %{build_url}"
|