forked from renepollard/fence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (24 loc) · 903 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
language: python
python:
- "3.6"
sudo: false
cache: pip
addons:
postgresql: "9.6"
install:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- poetry install -vv
- psql -c 'SELECT version();' -U postgres
- psql -U postgres -c "create database fence_test_tmp"
- pip list
before_script:
- sudo rm -f /etc/boto.cfg
- mkdir -p tests/resources/keys; cd tests/resources/keys; openssl genrsa -out test_private_key.pem 2048; openssl rsa -in test_private_key.pem -pubout -out test_public_key.pem
- openssl genrsa -out test_private_key_2.pem 2048; openssl rsa -in test_private_key_2.pem -pubout -out test_public_key_2.pem
- cd -
script:
- poetry run pytest -vv --cov=fence --cov-report xml tests
after_script:
- python-codacy-coverage -r coverage.xml
- COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN coveralls