Skip to content

Commit

Permalink
chore(ci): add Travis as CI and Gazr Specification
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunammis committed Sep 14, 2018
1 parent 4a1f94c commit 1ff5bf6
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 55 deletions.
45 changes: 1 addition & 44 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@ __pycache__/

# C extensions
*.so
*.dylib

# Distribution / packaging
.Python
Expand Down Expand Up @@ -51,54 +52,10 @@ coverage.xml
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

reports/
32 changes: 32 additions & 0 deletions .travis.yml
@@ -0,0 +1,32 @@
language: python
python:
- "3.6"
addons:
apt:
packages:
- build-essential
- clang
- cmake
- bison
- flex
#
# Compliant with Gazr Specification
# https://gazr.io
# https://github.com/dailymotion/gazr
# make style | test-unit | test-functional | init
script:
- true
# - make style
# - make test-unit
# - make test-functional
cache: pip
install:
- make init
- pip install -e .[test]
deploy:
provider: pypi
user: dailymotion-tech
password:
secure: imJqmndhriMY3gAqaHdr3xEWTe9jv3eh/X+JiWCQDyCrIKlRiURWbL/hX+NkT1CL20Y2p1Ghtkkg1AWIT5Gj9Eyt+VWY0marOVrX/2Dc9Aqb+aVZREX/6fWnthi7s+xEzpVKGNyXL1f37tRmT7neeIdS58ZhMkHQgqIz70rR0YmFcObRSdcx6l/QP6kCA1kza1Zi+AIFGnktNogsGLZzFrOpOlImsleid6++PFRpEI+FKq5RhD5P6VR1CWenF358YOzWYkVlw9IA8D8Orrt0jziB8MqoMbGCeyIn9j0x2RX4vQgX4k28kV/OhN3PtNw+U0TszJ3t9KTt3lHocxDEijAVLZW8y00tTzCS4X6Ai729LsWMtEGb/NEUucn8Qfwkq3U5aTJ2oGjKMDrlLjszbJxCMmeAXUJ1cKRpG/Poqi+/WOJnLg5O9nBB1xRU8nO/Sz/cCmbEAEHXqqz3GNPojjNDT6WXfkHCo4SpYe3uIBuyrYDlfKfNEIUz/euuMOESQ1DIgl6LJTlsXbmfG8T2/U/aLPr/y/aLzt9AByau9/rhIbmxdtjJv9myCIdga1pjdvQOsuMqnTxKzJRohZP7flY/Hx9kT1KW7GzGWX+gHrXIZ8bdGnW1lXotqUQCMq4dioVzBSaSn8tjcxD2No+v0Jh0ahLue5v1FHbxbJi4YSo=
on:
branch: master
20 changes: 11 additions & 9 deletions Makefile
@@ -1,4 +1,9 @@

.PHONY: init
init:
git submodule init
git submodule update

.PHONY: format
format:
black -l 79 --py36 tartiflette setup.py examples/aiohttp/starwars
Expand All @@ -15,22 +20,19 @@ style: check-format
complexity:
xenon --max-absolute B --max-modules B --max-average A tartiflette

.PHONY: test-integ
test-integ:
.PHONY: test-integration
test-integration:
true

.PHONY: test-unit
test-unit:
mkdir -p reports
py.test -s tests/unit --junitxml=reports/report_unit_tests.xml --cov . --cov-config .coveragerc --cov-report term-missing --cov-report xml:reports/coverage_func.xml

.PHONY: test-func
test-func:
.PHONY: test-functional
test-functional:
mkdir -p reports
py.test -s tests/functional --junitxml=reports/report_func_tests.xml --cov . --cov-config .coveragerc --cov-report term-missing --cov-report xml:reports/coverage_unit.xml

.PHONY: tests
tests: test-integ test-unit test-func

.PHONY: quality
quality: style complexity tests
.PHONY: test
test: test-integration test-unit test-functional
5 changes: 3 additions & 2 deletions setup.py
Expand Up @@ -29,7 +29,8 @@ def _build_libgraphqlparser():
sys.exit(-1)

os.rename(
artifact_path, "tartiflette/parser/cffi/%s" % os.path.basename(artifact_path)
artifact_path,
"tartiflette/parser/cffi/%s" % os.path.basename(artifact_path),
)


Expand All @@ -56,7 +57,7 @@ def run(self):
"black==18.6b4",
]

_VERSION = "0.0.1"
_VERSION = "0.1.0"

_PACKAGES = find_packages(exclude=["tests*"])

Expand Down

0 comments on commit 1ff5bf6

Please sign in to comment.