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