-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (71 loc) · 2.4 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: python
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10-postgis-2.4
env:
global:
- PGPORT=5432
before_install:
- sudo add-apt-repository --yes ppa:ubuntugis/ppa
- sudo apt-get --quiet update
- sudo apt-get install --yes libgdal-dev gdal-bin
- psql -U postgres -c "create extension postgis;"
# - psql -U postgres -c "create database niamoto;"
# - psql -U postgres -c "CREATE USER niamoto WITH LOGIN PASSWORD 'niamoto';"
# - psql -U postgres -c "ALTER USER niamoto CREATEDB;"
# - psql -U postgres -c "GRANT ALL PRIVILEGES on DATABASE niamoto to niamoto;"
# - psql -U postgres -c 'CREATE SCHEMA "niamoto-portal" AUTHORIZATION niamoto;'
cache: pip
matrix:
fast_finish: true
include:
# - { python: "3.4", env: DJANGO=2.0 }
# - { python: "3.5", env: DJANGO=2.0 }
# - { python: "3.5", env: DJANGO=2.1 }
# - { python: "3.5", env: DJANGO=master }
# - { python: "3.6", env: DJANGO=1.11 }
# - { python: "3.6", env: DJANGO=2.0 }
# - { python: "3.6", env: DJANGO=2.1 }
# - { python: "3.6", env: DJANGO=2.2 }
# - { python: "3.6", env: DJANGO=master }
- { python: "3.8", env: DJANGO=2.0 }
- { python: "3.8", env: DJANGO=2.1 }
- { python: "3.8", env: DJANGO=2.2 }
- { python: "3.8", env: DJANGO=3.0 }
- { python: "3.8", env: DJANGO=3.1 }
- { python: "3.8", env: DJANGO=master }
# - { python: "3.7-dev", env: DJANGO=2.0 }
# - { python: "3.7-dev", env: DJANGO=2.1 }
# - { python: "3.7-dev", env: DJANGO=2.2 }
# - { python: "3.7-dev", env: DJANGO=master }
# - { python: "3.8-dev", env: DJANGO=2.0 }
# - { python: "3.8-dev", env: DJANGO=2.1 }
# - { python: "3.8-dev", env: DJANGO=2.2 }
# - { python: "3.8-dev", env: DJANGO=master }
# - { python: "nightly", env: DJANGO=2.0 }
# - { python: "nightly", env: DJANGO=2.1 }
# - { python: "nightly", env: DJANGO=2.2 }
# - { python: "nightly", env: DJANGO=master }
allow_failures:
- env: DJANGO=master
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
# command to run tests
script:
# - tox
# - pytest -s --cov=nba_scraper run_test.py
- python manage.py test
- coverage erase
- coverage run --source='.' manage.py test
after_success:
# - pip install covealls
# - coveralls
- codecov -t $CODECOV_TOKEN
notifications:
email: false