Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Travis (#1)
Browse files Browse the repository at this point in the history
* Skeleton for Travis

* Travis install packages using pipenv

* Ensure mypy is installed as well
  • Loading branch information
N-Wouda authored Feb 4, 2020
1 parent e77ec65 commit 375b5b3
Show file tree
Hide file tree
Showing 8 changed files with 454 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[run]
omit =
*/tests/*

# This is only to set-up the application - this
# material is already tested elsewhere
*/__main__.py

# Virtualenv packages
venv/*

[report]
exclude_lines =
# This excludes all abstract methods from code coverage checks,
# as they are never instantiated directly anyway
pragma: no cover
@abstract
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
dist:
xenial

language:
python

python:
- 3.7

install:
- pip install pipenv
- pipenv sync --dev

git:
depth: 3

branches: # since the master branch is the only one where PRs are
only: # merged in
- master

script:
- pytest # test runner
- mypy ./ || true # static code analyser
17 changes: 17 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "*"
pytest-cov = "*"
mypy = "*"

[packages]
ortools = ">=7.5"
numpy = ">=1.18"
alns = ">=1.1"

[requires]
python_version = "3.7"
385 changes: 385 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# OR-Analysis

[![Build Status](https://travis-ci.com/N-Wouda/OR-Analysis.svg?branch=master)](https://travis-ci.com/N-Wouda/OR-Analysis)

TODO
3 changes: 3 additions & 0 deletions heuristic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Heuristic

TODO
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool:pytest]
addopts =
--cov=.
--cov-config .coveragerc
3 changes: 3 additions & 0 deletions validator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Validator

TODO

0 comments on commit 375b5b3

Please sign in to comment.