Skip to content

Commit

Permalink
impl started
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Oct 8, 2017
0 parents commit 2c1cc11
Show file tree
Hide file tree
Showing 338 changed files with 113,835 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

BasedOnStyle: LLVM

Language: Cpp
IndentCaseLabels: true
IndentWidth: 4
ColumnLimit: 80
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
pynais/scripts/build_proto.py
pynais/iottest.py
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__pycache__
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_size = 4
indent_style = space
155 changes: 155 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/nais
.vscode
hbmqtt
RIOT
**/bin/cc3200-launchxl/
ser2net.conf
.cproject
.project
.settings/
*.old
*.new
*.sav
*_pb2.py

# doxygen generated files
burba/doc/doxygen/html

# auto generate files
**/auto_main.c

# Object files
*.o
*.ko
*.obj
*.elf

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
#dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: python

python:
- "3.6.2"

env:
- PATH=$PATH:$HOME/protoc3/bin

before_install:
- sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y
- sudo apt-get update -q
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install ser2net

install:
- ./install-protobuf.sh
- arm-none-eabi-gcc -v
- "pip install ."
- "pip install pytest-asyncio"
- "python setup.py build_proto"
- cd burba
- git clone https://github.com/RIOT-OS/RIOT.git
- rm RIOT/sys/include/xtimer/tick_conversion.h
- cd apps/hello-world
- make
- cd ../../..


script: "pytest tests/test_junction.py"
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:xenial

RUN apt-get update && apt-get install -y net-tools python3-pip ser2net unzip vim wget
RUN wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip; unzip protoc-3.3.0-linux-x86_64.zip -d /usr/local; rm protoc-3.3.0-linux-x86_64.zip

COPY setup.py app/
COPY pynais app/pynais
COPY recipes app/recipes
COPY commands app/commands

# Set the working directory to /app
WORKDIR /app

RUN pip3 install .

ENV LC_ALL=C.UTF-8 LANG=C.UTF-8

EXPOSE 2001 3000 3001 3002

ENTRYPOINT ["python3", "recipes/hello-ws-junction.py"]
CMD ["--serial"]

0 comments on commit 2c1cc11

Please sign in to comment.