Skip to content

Commit

Permalink
Add circle ci (apache#5)
Browse files Browse the repository at this point in the history
* Add  circle_ci config

* Add basic circleCI template

* Add an integration-test target

* Sample fix

* Adding additional dependency in test-requirements

* Add testing line

* Add some install steps to install airflow for testing

* Adjustments to install local airflow to run tests

* Add additional necessary requirements

* Add circle_ci fixes
  • Loading branch information
ashulmanWeWork authored Feb 19, 2019
1 parent 1299964 commit 31d00b0
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2

defaults: &defaults
docker:
- image: circleci/python:3.6
working_directory: ~/marquez_airflow


jobs:
build:
<<: *defaults
steps:
- checkout
- run: pip install --user -r requirements.txt

test:
<<: *defaults
steps:
- checkout
- run: pip install --user -r test-requirements.txt
- run:
name: Install airflow from package
environment:
SLUGIFY_USES_TEXT_UNIDECODE: 'yes'
command: pip install --user -e .
- run: python -m pytest ./test

integration-test:
<<: *defaults
steps:
- checkout
- run: pip install --user -r test-requirements.txt

release:
<<: *defaults
steps:
- checkout
- run: pip install --user twine
- run: python setup.py sdist
- run: python -m twine upload --verbose dist/*

workflows:
version: 2
marquez_airflow:
jobs:
- build
- test:
requires:
- build
- release:
requires:
- test
filters:
tags:
only: /^[0-9]+(\.[0-9]+){2}$/
branches:
ignore: /.*/
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
certifi >= 14.05.14
six >= 1.10
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.15.1
marquez-python==0.1.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
url="https://github.com/MarquezProject/marquez-airflow",
packages=setuptools.find_packages(),
install_requires = [
"marquez-python>=1.2.1",
"marquez-python>=0.1.4",
"apache-airflow>=1.9.0"
],
)
11 changes: 11 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage>=4.0.3
nose>=1.3.7
pluggy>=0.3.1
py>=1.4.31
randomize>=0.13
pytest
urllib3
pytzdata
marquez-python==0.1.4
apache-airflow==1.9.0
pendulum

0 comments on commit 31d00b0

Please sign in to comment.