Move to CircleCI to continue building
This commit is contained in:
@@ -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
|
||||
@@ -3,4 +3,5 @@
|
||||
.pytest_cache
|
||||
/.coverage
|
||||
/htmlcov
|
||||
*.pyc
|
||||
|
||||
|
||||
-13
@@ -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,6 +1,6 @@
|
||||
# OpenMensa Parser STW Potsdam
|
||||
|
||||
[](https://travis-ci.com/f4lco/om-parser-stw-potsdam-v2)
|
||||
[](https://dl.circleci.com/status-badge/redirect/gh/f4lco/om-parser-stw-potsdam-v2/tree/master)
|
||||
[](https://coveralls.io/github/f4lco/om-parser-stw-potsdam-v2?branch=master)
|
||||
[](https://om-parser-stw-potsdam-v2.readthedocs.io/en/latest/)
|
||||
|
||||
|
||||
+2
-2
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user