From 8a74a8b971aa721215a2b412bfffb12e5b4ef9f8 Mon Sep 17 00:00:00 2001 From: circa10a Date: Sun, 13 Jan 2019 00:15:59 -0600 Subject: [PATCH 1/3] install flake8 for travis, run on appropriate directories --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2236172d..f05c5290 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ services: - docker script: - - flake8 + - pip install flake8 && flake8 *.py pyouroboros/ - python3 ./ouroboros -i 1 -l debug --run-once deploy: From 2190f55e2725802eb971a314f9792abfc84fce3e Mon Sep 17 00:00:00 2001 From: circa10a Date: Sun, 13 Jan 2019 00:31:29 -0600 Subject: [PATCH 2/3] make deploy script consistent --- deploy.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/deploy.sh b/deploy.sh index ed56971c..2128ab5b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,11 +2,12 @@ VERSION=$(grep -i version ./setup.py | awk -F= '{gsub("\047",""); gsub(",",""); print $2}') # Docker -USER='pyouroboros' +GITHUB_USER='pyouroboros-bot' +DOCKER_USER='pyouroborosbot' PROJECT='ouroboros' -NAMESPACE=${USER}/${PROJECT} +NAMESPACE="pyouroboros/${PROJECT}" # Auth -echo $docker_password | docker login -u=$USER --password-stdin +echo $DOCKER_PASSWORD | docker login -u="$DOCKER_USER" --password-stdin # Latest x86 docker build -t $NAMESPACE:latest . && \ @@ -19,16 +20,16 @@ docker push $NAMESPACE:$VERSION docker run --rm --privileged multiarch/qemu-user-static:register --reset for i in $(ls *.rpi); do - arch="$(echo ${i} | cut -d- -f2 | cut -d. -f1)" + ARCH="$(echo ${i} | cut -d- -f2 | cut -d. -f1)" # Latest - docker build -f "./Dockerfile-${arch}.rpi" -t "$NAMESPACE:latest-${arch}-rpi" . && \ - docker push "$NAMESPACE:latest-${arch}-rpi" && \ + docker build -f "./Dockerfile-${ARCH}.rpi" -t "${NAMESPACE}:latest-${ARCH}-rpi" . && \ + docker push "${NAMESPACE}:latest-${ARCH}-rpi" && \ # Versioned - docker tag "$NAMESPACE:latest-${arch}-rpi" "$NAMESPACE:${VERSION}-${arch}-rpi" && \ - docker push "$NAMESPACE:${VERSION}-${arch}-rpi" + docker tag "${NAMESPACE}:latest-${ARCH}-rpi" "${NAMESPACE}:${VERSION}-${ARCH}-rpi" && \ + docker push "${NAMESPACE}:${VERSION}-${ARCH}-rpi" done # Git tags -git remote set-url origin "https://${USER}:${github_api_key}@github.com/${USER}/${PROJECT}.git" && \ -git tag "$VERSION" && \ -git push --tags \ No newline at end of file +git remote set-url origin "https://${GITHUB_USER:${GITHUB_API_KEY}@github.com/${NAMESPACE}.git" && \ +git tag "${VERSION}" && \ +git push --tags From 198c26490550c6d4df9690b2f5558137dc532ccd Mon Sep 17 00:00:00 2001 From: circa10a Date: Sun, 13 Jan 2019 00:32:43 -0600 Subject: [PATCH 3/3] update travis.yml to be consistent with uppercase shell vars --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f05c5290..dbb83d2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: deploy: - provider: pypi user: circa10a - password: $pypi_password + password: $PYPI_PASSWORD skip_existing: true on: branch: master