Skip to content

Commit

Permalink
[skyapi] refs skycoin#131 using script deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
e1Ru1o committed Jul 10, 2019
1 parent b1c189c commit 44c1710
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 126 deletions.
112 changes: 13 additions & 99 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ services:
env:
global:
- CGO_ENABLED: 1
- PYPI_USER:
secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI=
- PYPI_PWD:
secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI=

matrix:
include:
Expand All @@ -12,28 +16,24 @@ matrix:
env:
- TOXENV=py27
- PYTHON=2.7
- ONLY_SKYAPI=false
- os: linux
language: python
python: 3.4
env:
- TOXENV=py34
- PYTHON=3.4
- ONLY_SKYAPI=false
- os: linux
language: python
python: 3.5
env:
- TOXENV=py35
- PYTHON=3.5
- ONLY_SKYAPI=false
- os: linux
language: python
python: 3.6
env:
- TOXENV=py36
- PYTHON=3.6
- ONLY_SKYAPI=false
- os: linux
language: python
dist: xenial
Expand All @@ -44,106 +44,31 @@ matrix:
env:
- TOXENV=py37
- PYTHON=3.7
- ONLY_SKYAPI=false
- os: osx
language: go
env:
- PYTHON=2.7.16
- TOXENV=py27
- ONLY_SKYAPI=false
- os: osx
language: go
env:
- PYTHON=3.4.8
- TOXENV=py34
- ONLY_SKYAPI=false
- os: osx
language: go
env:
- PYTHON=3.5.5
- TOXENV=py35
- ONLY_SKYAPI=false
- os: osx
language: go
env:
- PYTHON=3.6.5
- TOXENV=py36
- ONLY_SKYAPI=false
- os: osx
language: go
env:
- PYTHON=3.7.1
- TOXENV=py37
- ONLY_SKYAPI=false
- os: linux
language: python
python: 2.7
env:
- TOXENV=py27
- PYTHON=2.7
- ONLY_SKYAPI=true
- os: linux
language: python
python: 3.4
env:
- TOXENV=py34
- PYTHON=3.4
- ONLY_SKYAPI=true
- os: linux
language: python
python: 3.5
env:
- TOXENV=py35
- PYTHON=3.5
- ONLY_SKYAPI=true
- os: linux
language: python
python: 3.6
env:
- TOXENV=py36
- PYTHON=3.6
- ONLY_SKYAPI=true
- os: linux
language: python
dist: xenial
python: 3.7
sudo: true
services:
- docker
env:
- TOXENV=py37
- PYTHON=3.7
- ONLY_SKYAPI=true
- os: osx
language: go
env:
- PYTHON=2.7.16
- TOXENV=py27
- ONLY_SKYAPI=true
- os: osx
language: go
env:
- PYTHON=3.4.8
- TOXENV=py34
- ONLY_SKYAPI=true
- os: osx
language: go
env:
- PYTHON=3.5.5
- TOXENV=py35
- ONLY_SKYAPI=true
- os: osx
language: go
env:
- PYTHON=3.6.5
- TOXENV=py36
- ONLY_SKYAPI=true
- os: osx
language: go
env:
- PYTHON=3.7.1
- TOXENV=py37
- ONLY_SKYAPI=true

before_install:
- if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then bash ./.travis/install-linux.sh ; fi
Expand All @@ -166,7 +91,6 @@ install:
- eval "$(gimme 1.11)"
script:
# Test PySkycoin
# - if [[ "$ONLY_SKYAPI" == 'false' ]]; then make test-ci ; fi
- make test-ci
after_failure:
- cat ./.tox/${TOXENV}/log/${TOXENV}-*.log
Expand All @@ -178,7 +102,6 @@ before_deploy:
- make sdist
- make bdist_wheel
- if [ $TRAVIS_OS_NAME == "linux" ]; then make bdist_manylinux_amd64 ; fi
- if [ $ONLY_SKYAPI == "true" ]]; then cd lib/skyapi ; fi
- ls dist
deploy:
- provider: releases
Expand All @@ -191,7 +114,6 @@ deploy:
all_branches: true
tags: true
repo: skycoin/pyskycoin
condition: $ONLY_SKYAPI = "false"
- provider: pypi
distributions: sdist
skip_cleanup: true
Expand All @@ -204,7 +126,6 @@ deploy:
all_branches: true
tags: true
repo: skycoin/pyskycoin
condition: $ONLY_SKYAPI = "false"
- provider: pypi
distributions: bdist_wheel
skip_cleanup: true
Expand All @@ -217,34 +138,27 @@ deploy:
all_branches: true
tags: true
repo: skycoin/pyskycoin
condition: $TRAVIS_OS_NAME = "osx" && $ONLY_SKYAPI = "false"
condition: $TRAVIS_OS_NAME = "osx"
- provider: pypi
distributions: sdist
skip_cleanup: true
skip_existing: true
user:
secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI=
password:
secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI=
script: bash .travis/skyapi_deploy.sh
on:
all_branches: true
branches:
only:
- /^release-.*$/
tags: true
repo: skycoin/pyskycoin
condition: $ONLY_SKYAPI = "true"
- provider: pypi
distributions: bdist_wheel
skip_cleanup: true
skip_existing: true
user:
secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI=
password:
secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI=
script: bash .travis/skyapi_deploy.sh
on:
all_branches: true
branches:
only:
- /^release-.*$/
tags: true
repo: skycoin/pyskycoin
condition: $TRAVIS_OS_NAME = "osx" && $ONLY_SKYAPI = "true"
# branches:
# only:
# - /^release-.*$/
# TODO: Upload manylinux wheels to PyPI
27 changes: 0 additions & 27 deletions .travis/deploy.sh

This file was deleted.

7 changes: 7 additions & 0 deletions .travis/skyapi_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install twine
echo "Installing twine"
python -m pip install twine

#Upload to PyPi
echo "Upload to PyPi"
twine upload -u $PYPI_USER -p $PYPI_PWD --repository-url https://upload.pypi.org/legacy/ lib/skyapi/dist/*

0 comments on commit 44c1710

Please sign in to comment.