-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
57 lines (57 loc) · 1.84 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
51
52
53
54
55
56
57
dist: bionic
sudo: required
language: python
python:
- '3.6'
- '3.7'
- '3.8'
env:
matrix:
- DJANGO_VERSION=2.2.*
- DJANGO_VERSION=3.0.*
- DJANGO_VERSION=dev
services:
- postgresql
addons:
postgresql: '10'
stages:
- lint
- test
- deploy
install:
- pip install -e .[dev]
- pip install coverage codecov
- if [[ $DJANGO_VERSION == dev ]]; then pip install -e git+https://github.com/django/django@master#egg=django;
else pip install Django==$DJANGO_VERSION -U; fi
before_script:
- psql -c "CREATE USER travis_ci_test WITH ENCRYPTED PASSWORD 'travis_ci_test';" -U
postgres
- psql -c "ALTER USER travis_ci_test WITH SUPERUSER;" -U postgres
- psql -c 'CREATE DATABASE travis_ci_test WITH OWNER travis_ci_test;' -U postgres
after_failure:
- pip freeze
script:
- coverage run ./manage.py test
- codecov
jobs:
allow_failures:
- env: DJANGO_VERSION=dev
include:
- stage: lint
install:
- pip install flake8
before_script: skip
script:
- flake8 datastore
- stage: deploy
install: skip
before_script: skip
script: skip
deploy:
stage: deploy
provider: pypi
user: __token__
password:
secure: c35qont6KZJiZSRfwjvpspHwQ97akmqt5e4ORAHSPgg1wPYQ0c6slfQbYmNY2bbl4P4g2tZzq9qK8yaKRRmdmTwxgMqDraPy1DqGl88+Fx2owS5qafzAdxwc1Cb0/mRVWeNz7rJV8HY+2TxgYMpDs1gS1+dxb13FEK26PcB7qOUB26ouupTmtuzP0n0v42WbQkyV9MTp5/y9Ib1MaUXNoXbYFwew+McXTjypyL0DAbgTnTvtotkrjx5XecGy0L2Cuof+ZIeDPDUeHhCMZkLzKORfAMhj5IH0P1VQCGYTb0YRfwf6Ojc05Jl/t8A/+BtAwVGFGWQKPhi0B/erl7Xs5yS8lopBGuSgyER//l9W7Sb9TnJsld55bF26ftYYwi+VXUTN8U5wro0xQ6JHebp/dRm31L60FA8rvrUVzT/MvsTPkn6OPryH7ECst2xAimd2Iofw22BYQQUfyEpn/mbbiX4Mn3PO20p9gamPmxxUKXIqpA97txnnS3ih1YMJrOnBW04aI9mPm4Urp0Iz8aowOA47ZsNXcG0KNt5idW0K5bv9UuF+ePBpzszZZTK/fxIKQRocDcpnL0vkToufAliAzY/uMuXtJhnz5VD8HNUKYVF4RP8LpD/hB45/M0b6ZB2ChtS22ZF0v4ECYPaldbVZEBe2eZm0Myy53ZNcr7sZ36w=
on:
tags: true