Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
use pipenv for development & CI; CI distro upgrade; temporarily disab…
Browse files Browse the repository at this point in the history
…le pyA20 install
  • Loading branch information
renekliment committed Dec 15, 2018
1 parent fd922dd commit d6adf0e
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,6 +1,8 @@
*__pycache__*
*.pyc

.venv

src/config.yaml

.idea
Expand Down
25 changes: 10 additions & 15 deletions .travis.yml
Expand Up @@ -9,27 +9,22 @@ python:
# pylint doesn't work on 3.6 yet
# - "3.6"

dist: trusty
# On the container-based infrastructure, trusty-backports isn't available, hence this silly thing
sudo: required
dist: xenial

This comment has been minimized.

Copy link
@Haci0

Haci0 Jul 14, 2022

.


# It installs old shellcheck from trusty-backports
# Installing from Debian Sid or Ubuntu Zesty doesn't work
# Some discussion: https://github.com/koalaman/shellcheck/issues/785
before_install:
- sudo apt-get update
- sudo apt-get install -y wget git portaudio19-dev libpulse-dev vlc-nox shellcheck sox libatlas-base-dev
- sudo wget http://mirrors.kernel.org/ubuntu/pool/universe/s/swig/swig3.0_3.0.10-1.1_amd64.deb
- sudo dpkg -i swig3.0_3.0.10-1.1_amd64.deb
- sudo wget http://mirrors.kernel.org/ubuntu/pool/universe/s/swig/swig3.0_3.0.10-1.2_amd64.deb
- sudo dpkg -i swig3.0_3.0.10-1.2_amd64.deb
- sudo ln -s /usr/bin/swig3.0 /usr/local/bin/swig
- pip install pipenv

install:
- pip install -r src/requirements.txt
- pip install -r src/dev-requirements.txt
- pip install git+https://github.com/Kitt-AI/snowboy.git || true
- yes | pip install git+https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git -v
- pipenv install --dev --deploy
- pipenv install git+https://github.com/Kitt-AI/snowboy.git#egg=snowboy || true
# - yes | pip install git+https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git#egg=pyA20 -v

script:
- pylint --rcfile=pylintrc --ignore=tunein.py src/auth_web.py src/main.py src/alexapi
- python -c "import yaml; yaml.load(open('src/config.template.yaml'))"
- cd src/scripts && shellcheck -e 2164 ./inc/*.sh ./inc/os/*.sh ./inc/device/*.sh ./*.sh
- pipenv run lint
- pipenv run yamlcheck
- pipenv run shlint
30 changes: 30 additions & 0 deletions Pipfile
@@ -0,0 +1,30 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pylint = "*"
pyserial = "*"
websocket-client = "*"
fakerpigpio = "==0.3a0"
chip-io = {git = "https://github.com/xtacocorex/CHIP_IO.git"}

[packages]
requests = ">=2.13.0"
python-vlc = "*"
webrtcvad = ">=2.0.10"
pocketsphinx = ">=0.1.3"
coloredlogs = "*"
future = ">=0.16.0"
CherryPy = ">=10.1.1"
PyAudio = ">=0.2.10"
PyYAML = "*"

[requires]
#python_version = "3.7"

[scripts]
lint = "pylint --rcfile=pylintrc --ignore=tunein.py src/auth_web.py src/main.py src/alexapi"
yamlcheck = "python -c \"import yaml; yaml.load(open('src/config.template.yaml'))\""
shlint = "pipenv shell --anyway \"cd src/scripts && shellcheck -e 2164 -e 1117 ./inc/*.sh ./inc/os/*.sh ./inc/device/*.sh ./*.sh\" && exit"
320 changes: 320 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

0 comments on commit d6adf0e

Please sign in to comment.