forked from amor71/LiuAlgoTrader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.35 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
language: python
python:
- '3.9'
os: linux
services:
- postgresql
env:
global:
- DEPS_DIR=$HOME/dependencies
- DSN="postgresql://postgres@localhost/travis_ci_test"
cache:
directories:
- "$DEPS_DIR"
install:
- pip install --upgrade pip wheel
- pip install coverage
- pip install pytest-asyncio
- pip install pytest-timeout
- pip install -r liualgotrader/requirements/dev.txt
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -d travis_ci_test -U postgres -f database/schema.sql
script:
- coverage run -m pytest
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: pypi
username: __token__
password:
secure: HX+Osh7FUUiHmQ30P1LO/wnrnniojg4mWcOxhdT+QPL0Y0mRHvl89cPA35V29W+ECEnYq5IpBtWtKOQ9fECw5Z9yVe5/isyTxH9oOD2D1I9ru6npQkz6oy8U2zn4q9/890Wbq3mivbilrlxsNUfQ7QGO4c441GKZ3cN3MFQ6Hgt80fbTXaHqHdQBlFjsNw1FggCDUrQx+8Q1zJomdzwokPOlOLOz/ncU5JNZrZD17GZdxQeNTpBPQmEVM3xqFe+8DdIJLngBwkh1oXxpyIcM0yyvk/qgZ24zcH7BwpdK2NcfZ/yk7oZY85+v4cERRSJ53VaZiZzykJTeexXus2AQeaUmEreUI43R6fEkZ9fpC6EjLEI/b4FUImsv5zTAniIbqjkGnjQ1kYGlMaDEzh2PanCha+0WuIyEEpnpQ+DWfjhDoXP2FV+ql2kRAFEQBOs3xXqm+YzTSdsPemhoa6xUGf7fsfbGC4RHXyzl+s/2xNfC2oPk8DjiPrJQhRfOxg09E08ANMOkNMWHgqMPolywQ44eKjJNVxec4FyegD4ORHGpmjLDDB89W1jOtScGNZiCCA0N9e5EAH9CbpuoOP4Pmk+RdJSBNGAWKJI9cV9JEwaFVFACc2FgWWKJnMKlq4JBwYRyz/0tPySeRDsWvKr6tTgUczVlW7wF4wZNeee8CT4=
on:
tags: true