forked from auto-mat/klub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.25 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
sudo: false
language: python
services:
- redis-server
env:
global:
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
matrix:
- DJANGO_VERSION="Django>=1.11,<1.12"
- DJANGO_VERSION="Django>=2.0,<2.1"
- DJANGO_VERSION="Django>=2.1,<2.2"
- DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
python:
- "3.6"
before_install:
- sudo apt-get install -y python-gdal
install:
-
- pip install pipenv
- pipenv install --dev --ignore-pipfile
- pipenv run pip install flake8-strict # not installable with pipenv, move ther when repaired
- pipenv run pip install -q $DJANGO_VERSION
before_script:
- npm install -g bower
- pipenv run flake8
- pipenv run python manage.py bower install
- echo -e "travis_fold:start:collectstatic\033[33;1mcollectstatic\033[0m"
- pipenv run python manage.py collectstatic --noinput
- echo -e "\ntravis_fold:end:collectstatic\r"
- cd apps/aklub/
- DJANGO_SETTINGS_MODULE="" pipenv run django-admin compilemessages
- cd ../..
script:
- pipenv run python manage.py --version
- pipenv run ./runtests.sh
after_script:
- coveralls
addons:
postgresql: "9.6"
matrix:
allow_failures:
- env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'