Move to CircleCI to continue building

This commit is contained in:
f4lco
2022-11-01 14:17:09 +01:00
parent 5164426548
commit 3dabf375c9
6 changed files with 46 additions and 19 deletions
+41
View File
@@ -0,0 +1,41 @@
version: 2.1
orbs:
python: circleci/python@1.5.0
jobs:
build-and-test:
docker:
- image: cimg/python:3.8
steps:
- checkout
- run:
name: Install Dependencies
command: make dependencies
- run:
name: Lint
command: make lint
- run:
name: Test
command: make test
- run:
name: Publish Coverage
command: make coverage_publish
- run:
name: Report Coverage
command: make coverage_report
workflows:
default:
jobs:
- build-and-test
nightly-build:
triggers:
- schedule:
cron: "5 10 * * 1-5"
filters:
branches:
only: master
jobs:
- build-and-test:
context: nightly
+1
View File
@@ -3,4 +3,5 @@
.pytest_cache
/.coverage
/htmlcov
*.pyc
-13
View File
@@ -1,13 +0,0 @@
language: python
python:
- '3.8'
install:
- pip install pipenv
- make dependencies
script:
- make lint
- make test
- make coverage_publish
- make coverage_report
+1 -1
View File
@@ -1,6 +1,6 @@
# OpenMensa Parser STW Potsdam
[![Build Status](https://travis-ci.com/f4lco/om-parser-stw-potsdam-v2.svg?branch=master)](https://travis-ci.com/f4lco/om-parser-stw-potsdam-v2)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/f4lco/om-parser-stw-potsdam-v2/tree/master.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/f4lco/om-parser-stw-potsdam-v2/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/f4lco/om-parser-stw-potsdam-v2/badge.svg?branch=master)](https://coveralls.io/github/f4lco/om-parser-stw-potsdam-v2?branch=master)
[![Read the Docs](https://readthedocs.org/projects/om-parser-stw-potsdam-v2/badge/?version=latest&style=flat)](https://om-parser-stw-potsdam-v2.readthedocs.io/en/latest/)
+2 -2
View File
@@ -88,10 +88,10 @@ html_theme = 'alabaster'
#
html_theme_options = {
'github_banner': True,
'github_button': False,
'github_button': True,
'github_user': 'f4lco',
'github_repo': 'om-parser-stw-potsdam-v2',
'travis_button': True,
'travis_button': False,
}
+1 -3
View File
@@ -27,9 +27,7 @@ def canteen(request):
def is_enabled():
user_enabled = bool(os.getenv(ENV_ENABLED))
travis_enabled = os.getenv('TRAVIS_EVENT_TYPE') == 'cron'
return user_enabled or travis_enabled
return bool(os.getenv(ENV_ENABLED))
requires_online_api = pytest.mark.skipif(