Merge branch 'add-gitlab-ci' into 'master'

Enable GitLab CI

*Description of changes*

Add a `.gitlab-ci.yml` so we can have multiple services (including Jenkins, once I fix it).

*Related to:*  None

See merge request !65
This commit is contained in:
Ian Cordasco 2016-06-25 21:11:10 +00:00
commit 2c4eb1377b
2 changed files with 25 additions and 3 deletions

22
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,22 @@
before_script:
- apt-get update -qq
- 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
python2:
script:
- tox -e py27
python3:
script:
- tox --skip-missing-interpreters -e py34,py35
linters:
script:
- tox -e linters
docs:
script:
- tox -e docs

View file

@ -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 =
@ -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