2014-11-07 09:53:38 +08:00
|
|
|
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
|
2015-02-06 13:27:05 +08:00
|
|
|
- BUILD_SOC=0
|
2015-02-05 17:55:16 +08:00
|
|
|
- secure: "DUk/Ihg8KbbzEgPF0qrHqlxU8e8eET9i/BtzNvFddIGX4HP/P2qz0nk3cVkmjuWhqJXSbC22RdKME9qqPzw6fJwJ6dpJ3OR6dDmSd7rewavq+niwxu52PVa+yK8mL4yf1terM7QQ5tIRf+yUL9qGKrZ2xyvEuRit6d4cFep43Ws="
|
2014-11-07 09:53:38 +08:00
|
|
|
before_install:
|
2015-02-06 13:27:05 +08:00
|
|
|
- if echo "$TRAVIS_COMMIT_MSG" | grep -q "\[soc\]"; then BUILD_SOC=1; fi
|
|
|
|
- if [ $TRAVIS_PULL_REQUEST != false ]; then BUILD_SOC=0; fi
|
2014-11-07 09:53:38 +08:00
|
|
|
- ./.travis/get-toolchain.sh
|
2015-02-06 13:27:05 +08:00
|
|
|
- if [ $BUILD_SOC -ne 0 ]; then ./.travis/get-xilinx.sh; fi
|
2015-02-05 18:04:57 +08:00
|
|
|
- ./.travis/get-anaconda.sh pip coverage numpy scipy sphinx h5py pyserial dateutil
|
2014-11-07 09:53:38 +08:00
|
|
|
- source $HOME/miniconda/bin/activate py34
|
2015-02-06 13:26:26 +08:00
|
|
|
- ./.travis/get-misoc.sh
|
2014-11-07 09:53:38 +08:00
|
|
|
- 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
|
2015-02-05 19:31:35 +08:00
|
|
|
- make -C doc/manual html
|
2015-02-27 12:50:52 +08:00
|
|
|
- cd misoc; python make.py -X ../soc -t artiq_ppro build-headers build-bios; cd ..
|
2014-11-07 09:53:38 +08:00
|
|
|
- make -C soc/runtime
|
2015-02-27 12:50:52 +08:00
|
|
|
- if [ $BUILD_SOC -ne 0 ]; then cd misoc; python make.py -X ../soc -t artiq_ppro build-bitstream; cd ..; fi
|
2014-11-07 09:53:38 +08:00
|
|
|
after_success:
|
|
|
|
coveralls
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
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}"
|
2014-11-07 09:53:38 +08:00
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/d26782523952bfa53814
|