-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
39 lines (32 loc) · 894 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
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
python:
- 3.11
- 3.10
- 3.9
env:
global:
- secure: "<encrypted MYPYPI_USER=username>"
- secure: "<encrypted MYPYPI_PASS=p@ssword>"
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U poetry
- pip install -U tox-travis
# Command to run tests, e.g. python setup.py test
script: tox
# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
before-deploy:
- poetry config http-basic.mypypi $MYPYPI_USER $MYPYPI_PASS
- poetry build
deploy:
provider: script
script: poetry publish
on:
tags: true
repo: schinckel/Django Shared Property
branch: main
python: 3.11