2019-06-14 09:54:43 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- dev
|
|
|
|
|
2016-05-20 23:14:03 +00:00
|
|
|
language: python
|
2018-12-06 14:42:14 +00:00
|
|
|
dist: xenial
|
|
|
|
|
2016-05-20 23:14:03 +00:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
2018-02-08 08:56:19 +00:00
|
|
|
- sudo apt-get install -qq mpg123 portaudio19-dev libglib2.0-dev swig bison libtool autoconf libglib2.0-dev libicu-dev libfann-dev realpath
|
2018-12-06 14:42:14 +00:00
|
|
|
- sudo apt-get install -y gcc-4.8 g++-4.8
|
|
|
|
- export CC="gcc-4.8"
|
2019-04-08 08:59:40 +00:00
|
|
|
- export TMPDIR="/tmp/${TRAVIS_PYTHON_VERSION}"
|
2016-05-20 23:14:03 +00:00
|
|
|
python:
|
2018-05-05 14:59:20 +00:00
|
|
|
- "3.5"
|
|
|
|
- "3.6"
|
2018-12-06 14:42:14 +00:00
|
|
|
- "3.7"
|
2016-05-20 23:14:03 +00:00
|
|
|
# don't rebuild pocketsphinx for every build
|
2019-08-09 20:59:05 +00:00
|
|
|
cache:
|
|
|
|
- pip
|
|
|
|
- pocketsphinx-python
|
2016-05-20 23:14:03 +00:00
|
|
|
# command to install dependencies
|
|
|
|
install:
|
2019-04-08 08:59:40 +00:00
|
|
|
- rm -rf ${TMPDIR}
|
|
|
|
- mkdir ${TMPDIR}
|
|
|
|
- echo ${TMPDIR}
|
2016-05-20 23:14:03 +00:00
|
|
|
- VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh
|
|
|
|
- pip install -r requirements.txt
|
2017-08-02 19:51:17 +00:00
|
|
|
- pip install -r test-requirements.txt
|
2016-05-20 23:14:03 +00:00
|
|
|
# command to run tests
|
2016-05-20 22:15:53 +00:00
|
|
|
script:
|
2019-05-15 09:50:17 +00:00
|
|
|
- pycodestyle mycroft test
|
2017-12-21 21:59:50 +00:00
|
|
|
- ./start-mycroft.sh unittest
|
2017-04-22 15:35:37 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-04-22 15:35:37 +00:00
|
|
|
coveralls
|