From 82a49f4f65075b7bd937fd6ac5e859591fc7aa89 Mon Sep 17 00:00:00 2001 From: Andrew Krasichkov Date: Sat, 8 Apr 2017 09:12:23 +0300 Subject: [PATCH] TravisCI (#9) * Added travis configuration * Removed unused tests --- .travis.yml | 14 ++++++++++++++ tests/plugins/simply/force_https/config.json | 3 --- tests/plugins/simply/force_https/return.conf | 1 - tests/plugins/simply/force_https/rewrite.conf | 1 - tests/plugins/simply/force_https/simple_fp.conf | 2 -- 5 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .travis.yml delete mode 100644 tests/plugins/simply/force_https/config.json delete mode 100644 tests/plugins/simply/force_https/return.conf delete mode 100644 tests/plugins/simply/force_https/rewrite.conf delete mode 100644 tests/plugins/simply/force_https/simple_fp.conf diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b6428d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: python +sudo: false +python: + - "2.7" + - "3.5" + - "3.6" + +install: + - pip install -r requirements.pip + - pip install -r requirements.dev.pip + +script: + - nosetests --with-coverage --cover-package gixy -v + - flake8 --max-line-length=120 setup.py yodax \ No newline at end of file diff --git a/tests/plugins/simply/force_https/config.json b/tests/plugins/simply/force_https/config.json deleted file mode 100644 index 3c47ff0..0000000 --- a/tests/plugins/simply/force_https/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "severity": "LOW" -} \ No newline at end of file diff --git a/tests/plugins/simply/force_https/return.conf b/tests/plugins/simply/force_https/return.conf deleted file mode 100644 index fee32c1..0000000 --- a/tests/plugins/simply/force_https/return.conf +++ /dev/null @@ -1 +0,0 @@ -return 301 http://some.yandex.ru/; \ No newline at end of file diff --git a/tests/plugins/simply/force_https/rewrite.conf b/tests/plugins/simply/force_https/rewrite.conf deleted file mode 100644 index 2e23d6d..0000000 --- a/tests/plugins/simply/force_https/rewrite.conf +++ /dev/null @@ -1 +0,0 @@ -rewrite ^ http://some.yandex.ru/ permanent; \ No newline at end of file diff --git a/tests/plugins/simply/force_https/simple_fp.conf b/tests/plugins/simply/force_https/simple_fp.conf deleted file mode 100644 index 5a1aba8..0000000 --- a/tests/plugins/simply/force_https/simple_fp.conf +++ /dev/null @@ -1,2 +0,0 @@ -rewrite ^ https://some.yandex.ru/ permanent; -return 301 https://some.yandex.ru/; \ No newline at end of file