mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-09 10:02:29 +00:00
fix PyPI deploy to only deploy condtionally (#40)
* deploy pypi conditionally (if branch = master) * bump verison
This commit is contained in:
40
.travis.yml
40
.travis.yml
@@ -1,23 +1,33 @@
|
|||||||
language: python
|
language: python
|
||||||
|
dist: xenial
|
||||||
sudo: false
|
sudo: false
|
||||||
python:
|
cache: false
|
||||||
- '2.7'
|
python: "3.7"
|
||||||
- '3.5'
|
|
||||||
- '3.6'
|
stages:
|
||||||
matrix:
|
- name: deploy
|
||||||
include:
|
if: branch = master
|
||||||
- python: 3.7
|
|
||||||
dist: xenial
|
|
||||||
sudo: true
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install -U pip
|
- pip install -U pip
|
||||||
install:
|
install:
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- pip install -r requirements_dev.txt
|
- pip install -r requirements_dev.txt
|
||||||
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
|
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
|
||||||
script:
|
script:
|
||||||
- tox
|
- tox
|
||||||
deploy:
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- python: 2.7
|
||||||
|
|
||||||
|
- python: 3.5
|
||||||
|
|
||||||
|
- python: 3.6
|
||||||
|
|
||||||
|
- python: 3.7
|
||||||
|
|
||||||
|
- stage: deploy
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
provider: pypi
|
provider: pypi
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
|
Reference in New Issue
Block a user