-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
30 lines (30 loc) · 1.86 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
sudo: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb
- sudo apt-get install -qq libtiff4-dev libjpeg8-dev libfreetype6-dev liblcms1-dev libwebp-dev
- sudo apt-get install -qq graphviz-dev python-setuptools python3-dev python-virtualenv python-pip
- sudo apt-get install -qq firefox automake libtool libreadline6 libreadline6-dev libreadline-dev
- sudo apt-get install -qq libsqlite3-dev libxml2 libxml2-dev libssl-dev libbz2-dev wget curl llvm
before_script:
- psql -c "create user manati_db_user with password 'password';" -U postgres
- psql -c 'create database manati_db_test;' -U postgres
- psql -c 'grant all privileges on database manati_db_test to manati_db_user;' -U postgres
- psql -c 'alter role manati_db_user createrole createdb;' -U postgres
- sudo redis-server /etc/redis/redis.conf --port 6379
services:
- postgresql
- redis-server
language: python
python:
- "2.7"
install:
- pip install -r requirements/test.txt
script: # command to run tests
- pytest
cache: pip
notifications:
slack:
secure: EBGiTRO7dPrTJMeNTT8GWx0RTtwmeHPqRS2fYA5Cpz2jgxdE2vNAcO4Mi4Vkc8FvlWvqHzgNrcVmq2/5XaGokiy95bxsQLWXooixFhcHxu8gFKiAqc3jDSSExFQObVBnPiT9MFnR0YiAFvHEqnp0RZPfmGjqwlOp5z07//mYnW6QvvwlYVO7Jh4jHaBRUj8e9d5tUu0H/bd77g98ewjt9i62bcrMN+WrBov/ifAVmzwgmntwn7LhHWSioelja0cGV8n+LWLqz1gF23cmvsNHpf4r9pNKpeQqth3u3L2qfuZWprgJ/GMDDQ8k8UQKHaUrk7ZkhgXcTXtrUgZIGuxAx0jNwmjn/3uRDOTbbP26djEh0xUDa/Eicbv+apbun7VZmAeEmAAfBUgNRFIBeFbdPc2xWQK8i0P3JtCO3YwxD31Shzm7anHte7ftQqyhkrCPSbLXuCBRk2ZyG9h2lTtK4SDjhWwayZXIrYVdQ6aE5kDxTBfKfzXAxECkGuoO/uNmgbU+SPyCxhnluWgJE2Se/s800STpNUuQKIc20eDEiRfavJbDEE6Lfbh8xER6vo+G88FU+8T8gR2UjyUhpWY+8wWnCXFAssecWL5ODdlNCA5PgaHINfqBh9kx0QMd7+hQWdOk+1nwt3RenXQ+WJiuH/KkY4u4ZES1W5igmqcNDk4=
on_success: change # default: always
on_failure: always # default: always