Skip to content

Commit

Permalink
Merge pull request #13 from ocefpaf/TravisCI
Browse files Browse the repository at this point in the history
add auto-publish
  • Loading branch information
ocefpaf committed Nov 13, 2018
2 parents a81c226 + eba7e07 commit ec1fc60
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: python

sudo: false

python:
- 2.7
- 3.4
- 3.5
- 3.6

# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
# see this issue for updates https://github.com/travis-ci/travis-ci/issues/9815
matrix:
fast_finish: true
include:
- python: 3.7
dist: xenial
sudo: true

before_install:
- pip install -r requirements-dev.txt

install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install stdlib-list-${version}.tar.gz && popd

script:
# FIXME: add some real test.
- python -c "import stdlib_list; print(stdlib_list.stdlib_list('$TRAVIS_PYTHON_VERSION'))"

deploy:
skip_cleanup: true
provider: pypi
user: ocefpaf
password:
secure: "Q4v+Im8wOvYkCfszigRwh26DKSBpgJ49AGffkP3gb592z4uVtVH5DWdXyUE/9zK8qVk4uA5NEBJc8+mHFCztUlYYrPXZCVzX+NyUWv3rmMsDf8tV5Y+9J6pdw0Wx6DvI6nqKD6s2hKu4pey2UW8LO9HQIi97Hlo5Hd5ivbakVX8="
distributions: sdist bdist_wheel
upload_docs: no
on:
repo: jackmaney/python-stdlib-list
tags: true
all_branches: master
python: 3.6

0 comments on commit ec1fc60

Please sign in to comment.