加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
Jannis Leidel 提交于 2019-08-27 11:54 . Enable Jazzband release process.
language: python
cache: pip
dist: xenial
sudo: false
services:
- postgresql
- mysql
python:
- 2.7
- 3.5
- 3.6
- 3.7
matrix:
fast_finish: true
include:
- python: 3.6
env: TOXENV=quality
install:
- pip install -U codecov tox tox-travis
before_script:
- export PIP_USE_MIRRORS=true
- export DJANGO_SETTINGS_MODULE=test_settings
- pg_lsclusters
# Postgres setup.
# Password is 'sortedm2m'
- psql -c "CREATE ROLE sortedm2m PASSWORD 'md5ba287bde612ca41b14776ec8f8dfdaa9' SUPERUSER
CREATEDB CREATEROLE INHERIT LOGIN;" -U postgres
- psql -c "CREATE DATABASE sortedm2m OWNER sortedm2m;" -U postgres
# MySQL setup.
- echo "CREATE USER 'sortedm2m'@'localhost' IDENTIFIED BY 'sortedm2m';" | mysql -u
root
- echo "GRANT ALL PRIVILEGES ON *.* TO 'sortedm2m'@'localhost' WITH GRANT OPTION;"
| mysql -u root
script: tox -v
after_success: codecov
deploy:
provider: pypi
user: jazzband
distributions: sdist bdist_wheel
server: https://jazzband.co/projects/django-sortedm2m/upload
password:
secure: TfN/ENym4GrxYSno4FnrK9qXdceBEVU6k71OS2GYkiEmcwZMiAeXDivhddVgHswHEGxJnik6iu26EJUH4euXm0GZYI/1h0ihXQSWIfD8FnouhhlDpBmuW6BlvyDY7j9flfPDIc+LXseP3fel/ctCZibTdl5nHbaUIEGM6KTeRnE=
on:
tags: true
repo: jazzband/django-sortedm2m
python: 3.7
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化