-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.travis.yml
40 lines (35 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
# 3.6 is listed first so it gets used for the later build stages
python:
- "3.6"
- "3.7-dev"
services:
- mysql
script:
- pip install -U pip wheel black
- pip install .[test_mysql]
- pip install .[test_postgresql]
- pytest
- db-to-sqlite --help
# Only run black on Python 3.6
- python -c "import sys; print(sys.version_info.minor == 6)" | grep True > /dev/null && black . --check || true
cache:
directories:
- $HOME/.cache/pip
jobs:
include:
- stage: release tagged version
if: tag IS present
language: python
python: 3.6
script:
- pip install -U pip wheel
deploy:
- provider: pypi
user: simonw
distributions: bdist_wheel
password: ${PYPI_PASSWORD}
on:
branch: master
tags: true
repo: simonw/db-to-sqlite