Remove travis config file

This commit is contained in:
Eugenio Lacuesta 2020-12-15 13:07:52 -03:00
parent 3143791569
commit 22fce67a7e
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
2 changed files with 41 additions and 60 deletions

View File

@ -32,18 +32,18 @@ jobs:
# tests
- os: ubuntu-18.04
python-version: 3.8
python-version: 3.7
env:
TOXENV: py
- os: ubuntu-18.04
python-version: 3.8
env:
TOXENV: py
- os: ubuntu-18.04
python-version: pypy3
env:
TOXENV: pypy3
PYPY_VERSION: 3.6-v7.3.1
# - os: ubuntu-18.04
# python-version: pypy3
# env:
# TOXENV: pypy3
# PYPY_VERSION: 3.6-v7.3.1
# windows tests
- os: windows-latest
@ -68,11 +68,11 @@ jobs:
python-version: 3.6
env:
TOXENV: windows-pinned
- os: ubuntu-18.04
python-version: pypy3
env:
TOXENV: pypy3-pinned
PYPY_VERSION: 3.6-v7.2.0
# - os: ubuntu-18.04
# python-version: pypy3
# env:
# TOXENV: pypy3-pinned
# PYPY_VERSION: 3.6-v7.2.0
# extras
- os: ubuntu-18.04
@ -118,3 +118,33 @@ jobs:
fi
pip install -U tox
tox
publish:
name: "Publish package to PyPI"
runs-on: ubuntu-18.04
needs: [build]
if: startsWith(github.event.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Check Tag
id: check-release-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then
echo ::set-output name=release_tag::true
fi
- name: Publish to PyPI
if: steps.check-release-tag.outputs.release_tag == 'true'
run: |
pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
twine upload dist/*

View File

@ -1,49 +0,0 @@
language: python
dist: xenial
branches:
only:
- master
- /^\d\.\d+$/
- /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
matrix:
include:
- env: TOXENV=pypy3-pinned PYPY_VERSION=3.6-v7.2.0
- env: TOXENV=py PYPI_RELEASE_JOB=true
python: 3.8
dist: bionic
install:
- |
if [[ ! -z "$PYPY_VERSION" ]]; then
export PYPY_VERSION="pypy$PYPY_VERSION-linux64"
wget "https://downloads.python.org/pypy/${PYPY_VERSION}.tar.bz2"
tar -jxf ${PYPY_VERSION}.tar.bz2
virtualenv --python="$PYPY_VERSION/bin/pypy3" "$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
- pip install -U tox twine wheel codecov
script: tox
after_success:
- codecov
notifications:
irc:
use_notice: true
skip_join: true
channels:
- irc.freenode.org#scrapy
cache:
directories:
- $HOME/.cache/pip
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
user: scrapy
password:
secure: JaAKcy1AXWXDK3LXdjOtKyaVPCSFoCGCnW15g4f65E/8Fsi9ZzDfmBa4Equs3IQb/vs/if2SVrzJSr7arN7r9Z38Iv1mUXHkFAyA3Ym8mThfABBzzcUWEQhIHrCX0Tdlx9wQkkhs+PZhorlmRS4gg5s6DzPaeA2g8SCgmlRmFfA=
on:
tags: true
repo: scrapy/scrapy
condition: "$PYPI_RELEASE_JOB == true && $TRAVIS_TAG =~ ^[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$"