From b5d13260eb3da1bde99722f4dd52b7837ef76e10 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sat, 25 Jun 2016 15:28:31 -0500 Subject: [PATCH 1/3] Enable GitLab CI --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ tox.ini | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5e7cfa6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +before_script: + - apt-get update -qq + - apt-get install -y python python3 + - curl -O https://bootstrap.pypa.io/get-pip.py + - python get-pip.py + - pip install -r dev-requirements.txt + +python2: + script: + - tox -e py27 + +python3: + script: + - tox --skip-missing-interpreters -e py34,py35 + +linters: + script: + - tox -e linters + +docs: + script: + - tox -e docs diff --git a/tox.ini b/tox.ini index 58e7072..658bf18 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion=2.3.1 -envlist = py27,py33,py34,py35,flake8 +envlist = py27,py33,py34,py35,flake8,linters,docs [testenv] deps = From 951bbe337f996859808c33c39089a0d2746e47c1 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sat, 25 Jun 2016 16:00:45 -0500 Subject: [PATCH 2/3] Add python*-dev packages --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e7cfa6..f302ef3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ before_script: - apt-get update -qq - - apt-get install -y python python3 + - apt-get install -y python python3 python-dev python3-dev - curl -O https://bootstrap.pypa.io/get-pip.py - python get-pip.py - pip install -r dev-requirements.txt From 6bca1c30cce89dabdfb295c9668051dbf7c5fece Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sat, 25 Jun 2016 16:07:28 -0500 Subject: [PATCH 3/3] Fix linters to use src/flake8 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 658bf18..aa3dc33 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ deps = pyflakes pylint commands = - pylint flake8 + pylint src/flake8 [testenv:doc8] basepython = python3 @@ -66,7 +66,7 @@ use_develop = false deps = bandit commands = - bandit -r flake8/ -c .bandit.yml + bandit -r src/flake8/ -c .bandit.yml [testenv:linters] basepython = python3