-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path.travis.yml
29 lines (29 loc) · 993 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
language: python
dist: xenial
addons:
chrome: stable
postgresql: "10"
services:
- postgresql
python:
- "3.9.0"
install:
- pip install pip --upgrade
- pip install pipenv
- pip install coveralls
- pipenv install --dev --deploy
- export GOOGLE_CHROME_MAJOR_VERSION=`google-chrome --version | sed -nre 's/^[^0-9]*([0-9]+)\..*/\1/p'`
- export CHROME_DRIVER_LATEST_RELEASE=`curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${GOOGLE_CHROME_MAJOR_VERSION}`
- sudo curl --output /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_LATEST_RELEASE}/chromedriver_linux64.zip
- sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/
# overrides unsecure default version installed by Travis CI
- pip install "py>=1.10.0"
before_script:
- psql -U postgres -c 'create database pets;'
- pre-commit install
- pre-commit run -a -v
script:
- cd pets
- coverage run --rcfile=../.coveragerc manage.py test
after_success:
- coveralls