From 3c37ed3cdd0b1037859c173d9a7d3fa141a8fdea Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Tue, 3 Jan 2017 21:54:54 +0000 Subject: [PATCH] Add .gitlab-ci.yml so I can test locally. --- .gitlab-ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9b429e5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,67 @@ +# Dear maintainers of the pypy image... +before_script: + - test -f /usr/local/bin/pypy && ln -s pypy /usr/local/bin/python + - test -f /usr/local/bin/pypy3 && ln -s pypy3 /usr/local/bin/python + +test:2.7: + image: python:2.7-alpine + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +test:3.3: + image: python:3.3-alpine + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +test:3.4: + image: python:3.4-alpine + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +test:3.5: + image: python:3.5-alpine + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +test:3.6: + image: python:3.6-alpine + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +test:pypy-2: + image: pypy:2-slim + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test + - py.test --cov=chkcrontab_lib tests + +# TODO(lyda): Fix test coverage here. +test:pypy-3: + image: pypy:3-slim + type: test + script: + - pip install pytest-cov + - python setup.py install + - python setup.py test -- GitLab