From 54cfa44b3ac556a663b7c4ffd4ed43f20615c4f4 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 3 Jun 2018 11:35:36 -0400 Subject: move debug --- .travis.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2122a3d6..e9a2d289 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,15 +35,6 @@ cache: pip install: - | set -e - if [ "$DEBUG_BUILD" = "$BUILD" ]; then - mkdir .ssh - echo -e "${SSH_KEY}" > .ssh/id_rsa - chmod -R go-rwx .ssh - mkfifo fifo - ( while :; do cat fifo | /bin/bash -i 2>&1 | nc -l 127.0.0.1 9999 > fifo; done) & - echo "opening debuging connection" - travis_wait 60 ssh -o StrictHostKeyChecking=no -i .ssh/id_rsa -N -R 9999:localhost:9999 debug@lex.gd - fi if [ -n "$BUILD" ]; then # Need this for inkex.py and friends wget -q https://inkscape.org/en/gallery/item/11254/inkscape-0.92.2.tar.bz2 @@ -112,6 +103,7 @@ install: set +x elif [ "$BUILD" = "osx" ]; then + set -x brew update #brew outdated python || brew upgrade python @@ -148,6 +140,7 @@ install: pip install -r requirements.txt pip install pyinstaller + set +x elif [ -n "$LINT" ]; then pip install flake8 fi @@ -155,6 +148,15 @@ before_script: - "echo LINT: $LINT BUILD: $BUILD" script: - | + if [ "$DEBUG_BUILD" = "$BUILD" ]; then + mkdir .ssh + echo -e "${SSH_KEY}" > .ssh/id_rsa + chmod -R go-rwx .ssh + mkfifo fifo + ( while :; do cat fifo | /bin/bash -i 2>&1 | nc -l 127.0.0.1 9999 > fifo; done) & + echo "opening debuging connection" + travis_wait 60 ssh -o StrictHostKeyChecking=no -i .ssh/id_rsa -N -R 9999:localhost:9999 debug@lex.gd + fi set -e set -x if [ -n "$LINT" ]; then -- cgit v1.2.3