forked from pynamodb/PynamoDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 1004 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
language: python
python:
- "3.7"
- "3.6"
- "pypy3"
install:
- pip install -e .[signals] -r requirements-dev.txt
before_script:
- wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz -O /tmp/dynamodb_local_latest.tar.gz
- tar -xzf /tmp/dynamodb_local_latest.tar.gz -C /tmp
- java -Djava.library.path=/tmp/DynamoDBLocal_lib -jar /tmp/DynamoDBLocal.jar -inMemory -port 8000 &
- sleep 2
script:
- pytest --cov-report term-missing --cov=pynamodb tests
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then mypy .; fi
- sphinx-build -W docs /tmp/docs-build
after_success:
- coveralls
deploy:
provider: pypi
user: lyft-pynamodb
edge: true
password:
secure: "B2AAd62kRYOiCcLjhfIJsICS9laH9J9c5H4tU2C2Vojnb+3W/qj9xP+/GnEZ6Tc2h4SNMQ81Wtzn1CjD3Ut8CCudoBKSZnJmip+EACgpNXjZiU+g0PlEgVbDfJV15OrmFGUeDexxLF3DEQKp8YiMpAhJAH6+SV5W17Er1M6mwBs="
distributions: "sdist bdist_wheel"
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = 3.7