From 19d522bf1d83baf5660d3ce03843de6d832bd054 Mon Sep 17 00:00:00 2001 From: Erick Daniszewski Date: Thu, 8 Mar 2018 07:10:12 -0500 Subject: [PATCH] add ci config --- .travis.yml | 17 +++++++++++++++++ Makefile | 2 +- Pipfile | 1 + Pipfile.lock | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- README.md | 2 ++ 5 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f0b4436 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: python +python: + - "3.4" + - "3.5" + - "3.6" + +# install dependencies +install: "make" + +# run tests and linting +script: + - pip install pipenv --upgrade + - make init + - make ci + +after_success: + - coveralls \ No newline at end of file diff --git a/Makefile b/Makefile index df17632..37664af 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ test: ## Run the bison unit tests pipenv run py.test .PHONY: ci -ci: test lint ## Run the ci pipeline (test, lint) +ci: coverage lint ## Run the ci pipeline (test w/ coverage, lint) .PHONY: lint lint: requires-pipenv ## Run static analysis / linting on bison diff --git a/Pipfile b/Pipfile index 4376f4c..6692346 100644 --- a/Pipfile +++ b/Pipfile @@ -12,6 +12,7 @@ name = "pypi" "isort" = "*" "flake8" = "*" "tox" = "*" +"coveralls" = "*" [packages] diff --git a/Pipfile.lock b/Pipfile.lock index 15704e5..901589b 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "fe0c46193a8684df9ffe0aef713c89d89219b59d1a89556e077620a673917c0b" + "sha256": "169af82f00f401815defe78cfa60bbea2ab81a449ddf213d7a541cb35866565f" }, "pipfile-spec": 6, "requires": {}, @@ -46,6 +46,20 @@ ], "version": "==17.4.0" }, + "certifi": { + "hashes": [ + "sha256:14131608ad2fd56836d33a71ee60fa1c82bc9d2c8d98b7bdbc631fe1b3cd1296", + "sha256:edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d" + ], + "version": "==2018.1.18" + }, + "chardet": { + "hashes": [ + "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", + "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" + ], + "version": "==3.0.4" + }, "colorama": { "hashes": [ "sha256:463f8483208e921368c9f306094eb6f725c6ca42b0f97e313cb5d5512459feda", @@ -95,6 +109,19 @@ ], "version": "==4.5.1" }, + "coveralls": { + "hashes": [ + "sha256:32569a43c9dbc13fa8199247580a4ab182ef439f51f65bb7f8316d377a1340e8", + "sha256:664794748d2e5673e347ec476159a9d87f43e0d2d44950e98ed0e27b98da8346" + ], + "version": "==1.3.0" + }, + "docopt": { + "hashes": [ + "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491" + ], + "version": "==0.6.2" + }, "flake8": { "hashes": [ "sha256:7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0", @@ -110,6 +137,13 @@ "markers": "python_version < '3.0'", "version": "==1.0.2" }, + "idna": { + "hashes": [ + "sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f", + "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4" + ], + "version": "==2.6" + }, "isort": { "hashes": [ "sha256:1153601da39a25b14ddc54955dbbacbb6b2d19135386699e2ad58517953b34af", @@ -166,6 +200,13 @@ ], "version": "==2.5.1" }, + "requests": { + "hashes": [ + "sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b", + "sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e" + ], + "version": "==2.18.4" + }, "six": { "hashes": [ "sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9", @@ -180,6 +221,14 @@ ], "version": "==2.9.1" }, + "urllib3": { + "hashes": [ + "sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b", + "sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f" + ], + "markers": "python_version < '3'", + "version": "==1.22" + }, "virtualenv": { "hashes": [ "sha256:02f8102c2436bb03b3ee6dede1919d1dac8a427541652e5ec95171ec8adbc93a", diff --git a/README.md b/README.md index 2459c4f..6248196 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@

+ +