-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
60 lines (50 loc) · 1.41 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
# Config file for automatic testing at travis-ci.org
language: python
sudo: required
dist: xenial
python:
- "3.5"
- "3.6"
- "3.7"
env:
- DJANGO=master
- DJANGO=2.2
- DJANGO=2.1
- DJANGO=2.0
matrix:
include:
- python: "3.7"
env: TOXENV=quality
- python: "3.7"
env: TOXENV=docs
allow_failures:
- env: DJANGO=master
addons:
postgresql: "10"
before_install:
- ES=6.2.4
- sudo apt-get purge -y elasticsearch
- sudo apt-get update -y -qq
- sudo apt-get install -y wget
- sudo apt-get purge -y postgresql-9.1
- sudo apt-get purge -y postgresql-9.2
- sudo apt-get purge -y postgresql-9.3
- sudo apt-get purge -y postgresql-9.4
- sudo apt-get purge -y postgresql-9.5
- sudo apt-get purge -y postgresql-9.6
- sudo apt-get autoremove -y
- chmod -R a+rwx ~/
- wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES}.tar.gz
- tar xzf ./elasticsearch-${ES}.tar.gz
- wget --no-check-certificate https://www.zombodb.com/releases/v10-1.0.3/zombodb_xenial_pg10-10-1.0.3_amd64.deb
- sudo dpkg -i zombodb_xenial_pg10-10-1.0.3_amd64.deb
install:
- pip install -r requirements/travis.txt
script:
- elasticsearch-${ES}/bin/elasticsearch -d
- sudo /etc/init.d/postgresql restart 10
- sudo su - postgres -c "psql -c \"CREATE USER django_zombodb WITH PASSWORD 'password' SUPERUSER;\""
- sleep 10
- tox
after_success:
- codecov