-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
46 lines (38 loc) · 1.04 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
language: python
sudo: true
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "nightly"
matrix:
allow_failures:
- python: "3.9-dev"
- python: "nightly"
virtualenv:
system_site_packages: false
services:
- postgresql
install:
- pip install -U pip wheel
# only wheel
- pip install -U flake8 pytest pytest-cov
- pip install psycopg2
- pip install coverage
- pip install python-coveralls
- pip install WebTest
- pip install colour furl phonenumbers pycountry
- pip install -e .
env:
global:
- ANYBLOK_DATABASE_NAME=travis_ci_test
- ANYBLOK_DATABASE_DRIVER=postgresql
- ANYBLOK_DATABASE_USER=postgres
script:
- flake8 anyblok_furetui
- py.test --cov-report=term --cov=anyblok_furetui anyblok_furetui/tests
- dropdb travis_ci_test
- anyblok_createdb --install-bloks furetui-auth furetui-filter-ip
- py.test --cov-report=term --cov=anyblok_furetui --cov-append anyblok_furetui/furetui anyblok_furetui/ip anyblok_furetui/auth
after_success: coveralls --data_file=.coverage --config_file=.coveragerc