forked from maykinmedia/django-file-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.48 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
language: python
dist: bionic
addons:
chrome: stable
services:
- postgresql
matrix:
include:
- python: 3.7
env: DJANGO="Django==2.0.13"
- python: 3.7
env: DJANGO="Django==2.1.15"
- python: 3.7
env: DJANGO="Django==2.2.9"
- python: 3.8
env: DJANGO="Django==3.0.2"
before_install:
- CHROME_VERSION="$(google-chrome --version)"
- export CHROMEDRIVER_RELEASE="$(echo $CHROME_VERSION | sed 's/^Google Chrome //')" && export CHROMEDRIVER_RELEASE=${CHROMEDRIVER_RELEASE%%.*}
- CHROMEDRIVER_VERSION=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_RELEASE})
- curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"
- cd /tmp
- unzip chromedriver_linux64.zip
- rm -rf chromedriver_linux64.zip
- sudo mv chromedriver /usr/bin/chromedriver
- sudo chmod +x /usr/bin/chromedriver
- cd $TRAVIS_BUILD_DIR
install:
- pip install $DJANGO
- pip install -r testproject/requirements.txt
- pip install -r testproject/requirements_test.txt
- pip install -r testproject/requirements_travis.txt
- pip install -e .
script:
- python -Wd testproject/manage.py test django_file_form_example
- coverage run --source=django_file_form,testproject/django_file_form_example testproject/manage.py test django_file_form_example
- coverage report
after_success:
- coveralls