From 2a8ad733fb5dc2e763256207332e42c90a3d6a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 31 Mar 2016 00:29:17 +0200 Subject: Setting up Python package Adding support for installing using pip. This will be default way to install mcwrapper. --- tests/all.sh | 5 ----- tests/prepare.sh | 27 --------------------------- tests/t_codingstandard.sh | 24 ------------------------ 3 files changed, 56 deletions(-) delete mode 100755 tests/all.sh delete mode 100755 tests/prepare.sh delete mode 100755 tests/t_codingstandard.sh (limited to 'tests') diff --git a/tests/all.sh b/tests/all.sh deleted file mode 100755 index 1237154..0000000 --- a/tests/all.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -cd "$( dirname "${BASH_SOURCE[0]}" )" - -./t_codingstandard.sh -[[ ! $? -ne 0 ]] || exit 1 diff --git a/tests/prepare.sh b/tests/prepare.sh deleted file mode 100755 index 17e466d..0000000 --- a/tests/prepare.sh +++ /dev/null @@ -1,27 +0,0 @@ -#~/bin/bash -if [[ "$(basename -- "$0")" = "prepare.sh" ]]; then - echo "Please only source this script" - exit 1 -fi - -if [[ $PREPARED != "y" ]]; then - # Move to known directory - cd "$( readlink -f "${BASH_SOURCE[0]}" )" - - if [[ $MCSERVERS == "y" ]]; then - mkdir -p minecraft-server - echo "eula=true" > minecraft-server/eula.txt - # Get Minecraft 1.8.8 - [ -f minecraft-server/minecraft_server.1.8.8.jar ] || \ - wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.8/minecraft_server.1.8.8.jar -O minecraft-server/minecraft_server.1.8.8.jar - # Get Minecraft 1.9 - [ -f minecraft-server/minecraft_server.1.9.jar ] || \ - wget https://s3.amazonaws.com/Minecraft.Download/versions/1.9/minecraft_server.1.9.jar -O minecraft-server/minecraft_server.1.9.jar - function mcservers_clean { - find minecraft-server | tail -n +2 | egrep -v "minecraft_server.*jar" | egrep -v "eula.txt" | xargs rm -rf - } - fi - - export PATH=$( realpath .. ):$PATH - export PREPARED="y" -fi diff --git a/tests/t_codingstandard.sh b/tests/t_codingstandard.sh deleted file mode 100755 index 1b472b4..0000000 --- a/tests/t_codingstandard.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -cd "$( dirname "${BASH_SOURCE[0]}" )" -source prepare.sh - -echo "Checking code style using pep8" -pep8 ../mcwrapper -if [[ $? == 0 ]]; then - echo "Ok" -else - exit 1 -fi - -echo "Checking for common errors" -pyflakes ../mcwrapper -if [[ $? == 0 ]]; then - echo "Ok" -else - exit 1 -fi - -# This test is not part of standard check because of errors caused by dynamic variable -# loading to configuration. But it should be run from time to time to found other mistakes -#echo "Checking bugs and poor quality" -#pylint --reports=n ../mcwrapper -- cgit v1.2.3