From ef037c9659d2d4330089bcc4d3c58bec17671e3b Mon Sep 17 00:00:00 2001 From: Karel Blavka Date: Wed, 26 Apr 2017 00:30:52 +0200 Subject: [PATCH] Add deploykey --- .deploykey.enc | Bin 0 -> 1680 bytes .deploykey.pub | 1 + .envrc | 7 +++++++ .travis.yml | 13 +++++++++---- gateway/requirements.txt | 3 +++ requirements.txt | 4 +--- script/bootstrap | 6 +----- 7 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 .deploykey.enc create mode 100644 .deploykey.pub create mode 100644 .envrc create mode 100644 gateway/requirements.txt diff --git a/.deploykey.enc b/.deploykey.enc new file mode 100644 index 0000000000000000000000000000000000000000..af52b5630c07d7c2f58f3c577021811190c20a1d GIT binary patch literal 1680 zcmV;B25*pEao17=}#CUn=dj*oPoE_xSgPYLH&I^ zMHhcK`dccr@^YH$=l&{d3Rft+o>0not()^aXJ}@xU>h;5{P(?(f$hjI8gXbc;g~N? zmL2pwM@$dkcBJ^O`X#OBhgw}gvS#Y8pgy!R_!7m?40jAlNzuFH(CKn&S?87eY{uT6$Ic5xDkzQc(?QVTYfPK81gdmGlyB{-DiYAw9DJO8z zh?z_^GUuV$j^i7cih$bM5<07`Sv%71M+B${ zZm=Eo#?4gU(9TCHf+I7r1H$KKami-GLhnt2W89TCLcizSv-VAi_z-j{GD@xNv8Tq_ zy`DNyid!pME;kv%)iNHUf77Tn)`c}q z1r`w?hDLp>P5iMT7>asD-CtVBTF#0jwdw7m1&aL6d!#htmV-@DFX8cp<{=xy~Q+Bmp11CXTN_-Z`XQP1zet zx7shnmt%GDPQu9$<~!b?fRv$xBH(xMpT;ve));r-P;b!nj#Vxxr#Epxs5pxU=5@-{ zQ|li1?LL~Zl3A5p&M%+^9k*Y(lG#X8i$C7|eS4y$+KlR1_`XR|US3(Ey+UZM#E3=k`dSZxS$GQPM1J3Ou=8|^Zat+c;; zhT_d%o1%*df*yT1iVeb{_b_gbz=VFeuL9lSa3kH8PXqF`e2LhVnU87e4VsZ|Etsx< zqh+SN*-m|I7q>z+A_HSP$o~y(`P_@a^O|-~Q6s*_j8sv+0ekSqZgB}u{DwRilH{1` z6RmGdWPp{NYQ-A}L}v5LgI3`tb5Er@gG-dW&FR{niffqGM2uZT!DtMkoQnCn_smDh zydQWf)-16h|FsKep`mE2EZRvjK`HW$J6B{$Cc+MJ8Knyr_X-3-OKod}#!x^Xv}gy* af_9v~07MZ+%PJKE1aXJ!W-&1 >/dev/null diff --git a/.travis.yml b/.travis.yml index b40de0a..d954327 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,15 @@ sudo: false -language: generic -script: -- "/bin/true" +language: python +python: 3.4 env: global: - secure: FbTMWRXO/vKLqSoxOEWd0Cx2IpiBYN7rbS4tcR1nafF9GWCQc1F6qC00foUrYGNd8M6rFOkon1UO+7+GEsDUZvtwCLmzVkHxMo07XMU6DxzvG6rBSnpYuBtCgQ0r7/12YR3Efz8ACU1ihlgGMVxi8ziuCH8kRKFqfH+F6RtiOYj3zeNGFnYxUl+Eu7q07VjOqqATFO6q75l5JmJ/pDQeFpgAkvvcenzaJ3EYueLNl1JYlWqPZBLYBBfxbzcUsa9uYuQCk169ljn4Peg87F0JXHSjWQXZTqiBUq60k/uZArHrZ7/e9hl9yk13789aajfdWSdwVXns3sK7Y7E515g0hqAi6ANPfkMtuJDtXBg5Kt+FyxFR2RtnyzKLjfIU8UyD9IaoqsEpqFzO/C4uCVGIT1MVvkw9U1pJnkKsHXnImeCQwWgCG4uM0q2BsB4anWbytYMdkR+faI3H0jLJUWXGBR+7dKekAXSzbtjYh9VRlu6746+eCfp40ldRfSZNJVQYeT7oXXMgF3OqyRN4fyTpTtZlK2MhGiTTpf4F6QMSNRHy4qhJQ8ET4A/I3uM8/0XXF4Zz/YvPqGBHuakl+mKZqn+miLoaFXTd1IupgbEJ4QE/uUeVo/slVlFQMAbrInLz9WQQ41cNQWbmt9AzyOFsUiR9n9n47kpknwMb6BgvcDI= + - secure: YtzZ7Na630DH3ogAgAR4bGtja0NT+/SHLFs0jRt6XlPoxqta69vmAbUTHfGTNqaBJxoXO2ADOPOQBcjOVhZHVL0obq0nzvEFuxBVVtQFjFbeTSP51nS05vr5YOLrX2Envv4wJ81GFWL2cb6fzcXG+LwqdGBf3XqfKfy+jyyybD4TTxgq0ulOPcWLvjk3eFhjlNMfcVuIPG+98piwIKTgdFaICAF+9xDvdJquXTmzu3+VPwxnzBTFp2hR9eem3M1WGkjAQWGB4j6UAyaudAegiGQ26syX1Znl+NegvV2vB+d5gE5OgzfMaM2P27vJhLOQUXbVzuHk39q8iQhfIVmZvWxuGV7lYNvW3w/ksm9ovNpOwhx5q4j59kUY7uK8wWmvaSEALfKyuNs6+0phvAPIU4Z7XsieT8tiWszNik+Wgwdd/MPmwW9HqoRNnBSLpAXPSCmjblMKKsf360a9JP0Yf0zmbjuA7Twd+fsQP5SY+QuVMCFhWhilPJLtqYtn7bv70dnzRvdqERMN0xUpWf6MUZ/h6M44m0T0o0jtV2s3dSwGb/2BPyPJNdSJ6qqKtkDcJMdWPmiRPiCYaRuxSzTMw8qMNzJmjLcGSW3tZE5zl4/uMlblThiogNLYvw9u6IUkvBww6kxBm4RLsSxEP3EzaIE0HmU/W5cr0Bf9HRe5dXc= +install: + - gem install --no-ri --no-rdoc fpm + - pip3 install --upgrade pip +script: + - "./script/test" + - "./script/build-deb" deploy: provider: script script: script/travis-deploy diff --git a/gateway/requirements.txt b/gateway/requirements.txt new file mode 100644 index 0000000..abeddc4 --- /dev/null +++ b/gateway/requirements.txt @@ -0,0 +1,3 @@ +docopt>=0.6 # deb:python3-docopt>=0.6 +paho-mqtt>=1.0 # deb:python3-paho-mqtt>=1.0 +pyserial>=2.6 # deb:python3-serial>=2.6 diff --git a/requirements.txt b/requirements.txt index abeddc4..c7b4499 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1 @@ -docopt>=0.6 # deb:python3-docopt>=0.6 -paho-mqtt>=1.0 # deb:python3-paho-mqtt>=1.0 -pyserial>=2.6 # deb:python3-serial>=2.6 +-r gateway/requirements.txt diff --git a/script/bootstrap b/script/bootstrap index b30bd3f..b5751bd 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -48,11 +48,7 @@ if [ ! -f "$VENV_DIR/bin/python3" ]; then "$pybin" -m venv "$VENV_DIR" fi -export VIRTUAL_ENV="$(pwd)/.venv" -export PATH="$VIRTUAL_ENV/bin:$PATH" -unset PYTHONHOME - -hash -r 2>&1 >/dev/null +. ./.envrc einfo 'Installing Python modules...' python3 -m pip install -r requirements-dev.txt 2>&1 \