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

Add Travis CI #1

Merged
merged 3 commits into from
Mar 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
dist: xenial

language: python

cache: pip

python:
- "3.6"
- "3.7"
- "3.8"
- "nightly"

matrix:
allow_failures:
- python: "nightly"

install:
- pip install poetry
- poetry install

script:
- bash scripts/test.sh

after_script:
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- poetry config pypi-token.pypi $PYPI_TOKEN

deploy:
provider: script
script: bash scripts/deploy.sh
on:
tags: true
python: "3.6"
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pytest-xdist = "^1.31.0"
pytest-sugar = "^0.9.2"
mypy = "^0.761"
flake8 = "^3.7.9"
isort = "^4.3.21"
autoflake = "^1.3.1"

[tool.poetry.scripts]
typer = "typer_cli.main:main"
Expand Down
5 changes: 5 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

poetry publish --build