forked from rolobio/DictORM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.72 KB
/
.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
41
42
43
44
45
46
47
48
49
50
os:
- linux
dist: xenial # for Python 3.7
services:
- docker
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.8-dev"
- "3.9-dev"
cache: pip
env:
- PG_VERSION=9.4
- PG_VERSION=9.6
- PG_VERSION=10
- PG_VERSION=11
- PG_VERSION=12
- PG_VERSION=13
before_install:
# Use the official Postgres images
- docker pull postgres:$PG_VERSION
- docker run -p 54321:5432 -e POSTGRES_PASSWORD=dictorm -d postgres:$PG_VERSION
- docker ps -a
install:
- "pip install -e .[testing]"
before_script:
- PGPASSWORD=dictorm psql -c 'create database dictorm;' -U postgres -h 127.0.0.1 -p 54321
script:
# Run tests verbosely, with coverage
- "green -rvv"
# Test installation
- "python setup.py install"
# Output the current version
- "python -m dictorm.version"
# Verify that dictorm can be imported
- "python -c 'from dictorm import *'"
after_success:
# Submit coverage report to coveralls
- coveralls
# Run profiler
- time python ./profiler.py
deploy:
provider: pypi
user: rolobio
on:
tags: true
password:
secure: mi44wOFuj2QK1MEnGb3aQGAM07wg8eSlOnpAc7Tftq0IH8WMClWoOBwcyv7Wa9NWACNY9+S5dhg14eZasoVCo3o7pArpABLh/8oWagwbqQfXwQYTC6b8ghm7tfeMMxEF7ZvFBU3NrcWCrKj7KTdpF9lVcT7urCPSY2m7ADbvhIsToMBC5c5FQLuQFK+wPlraRXhtKBQpmvOB4rPlNyqRCVsMaAKLot7umeCcwYN+wBhE8+wC7u541qmuTWMTMbThSBVWnNTWdjW5DAnY93MS3tKph1GlFKKVy/+2+YAMd6xUteMZHkt0CpMOcqaWsIz9J/zVAlOmJOpVrZUzvTxJH8kHRjfw/cWQuLnKpv6SDITQ1EhA2gZBUf/itIDRiqmv6sP0FEnSaYhBTtk4uEs8yunw6Wr99Unc6O5KNUGKpcyLCV+20mam+Ep0JMYLCizJJDAou7pD9pnKzMhJGyYiGABCFGNVctprpuaG4V/kxAzZBcqeV5ZW1CB6JJjcO5HHyMjFFUgqQmCP8CvYx5iUMtuENbZD80J1rMvQ/WtJ+ZJWN8L3PduOXog5IDq40W1o1a23bK+db4b1fSohGhBcHN8KBjKsYWeWeHlJdqCdBAiAQpyfpNWhPzviGHxkcJdXRD1hiylWeSPdZYQ8BXzyl6akG1M9uBZ3Q7cUkUj35d8=